Edit metadata: Text alignment on lists in WYSIWYG editor

Bug #1924187 reported by ownedbycats
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
Fix Released
Undecided
Unassigned

Bug Description

Calibre 5.14* (x64, run from source)

Here's a list for testing purposes:
<div>
<p style="font-weight: 600">The Ultimate Kite Book</p>
<ul><li>A glorious, lavishly illustrated guide to the exhilarating sport of kite flying</li>
<li>Full-color photographic catalog of classic and stunt kites</li>
<li>Easy-to-follow, step-by-step demonstrations of kite flying techniques, including basic manuevers for stunts</li>
<li>Instructions and patterns for making six different designs, from a simple sled to a more advanced box kite</li>
<li>The perfect introduction for beginners, as well as an invaluable source of information for the more experienced kite flyer</li></ul></div>

Selecting the list in the WYSWIG editor and selecting an alignment destroys the <ul> and <li> tags.

However, applying a list to already-aligned text produces proper <li align="alignment"> tags.

This doesn't seem intended.

Thank you!

Revision history for this message
Kovid Goyal (kovid) wrote : Fixed in master

Fixed in branch master. The fix will be in the next release. calibre is usually released every alternate Friday.

 status fixreleased

Changed in calibre:
status: New → Fix Released
Revision history for this message
ownedbycats (ownedbycats) wrote :

Since is is related to the fix for this bug, I will post it here.

1. Paste this into the HTML section of Comments:

<div>
<p style="font-weight: 600">Discover 200 classic, updated, and all-new cookie recipes inside... along with secrets, tips, and techniques for creating each batch perfectly.</p>
<p>Imagine the heavenly aroma of fresh-from-the-oeven cookies. A delightful burst of flavor from a warm brownie. The joyful look on a youngster's face when you serve scrumptious, homemade bars.</p>
<p>You'll experience these joys more often when <em>Cookies! </em>is in your kitchen. Full-color photographs fill these 256 pages—inspuring your cookie baking <em>and </em>showing you expert tips and techniques for getting perfect, great-tasting results.</p>
<p>Look inside now to find old-favorite and all-new recipes for:</p>
<ul><li>Shaped, Rolled &amp; Refrigerated Cookies</li>
<li>Drop Cookies</li>
<li>Chocolate Chip Cookies</li>
<li>Hearty Cookies</li>
<li>Filled &amp; Sandwich Cookies</li>
<li>Holiday &amp; Special-occasion Cookies</li>
<li>Bars &amp; Brownies</li></ul></div>

2. In WYSWIG mode, select all and press one of the alignment buttons.

3. The <p> tags turn into <li>s!

Changed in calibre:
status: Fix Released → In Progress
Revision history for this message
Kovid Goyal (kovid) wrote : Re: calibre bug 1924187

Yes, trying to fix that is waaay too much effort. Just dont do it.

 status wontfix

Changed in calibre:
status: In Progress → Won't Fix
Revision history for this message
Kovid Goyal (kovid) wrote : Fixed in master

Fixed in branch master. The fix will be in the next release. calibre is usually released every alternate Friday.

 status fixreleased

Changed in calibre:
status: Won't Fix → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers