After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 617286 - Numbered lists are renumbered when replying to HTML formatted email in Evolution
Numbered lists are renumbered when replying to HTML formatted email in Evolution
Status: RESOLVED WONTFIX
Product: GtkHtml
Classification: Other
Component: Editing
3.28.x
Other Linux
: Normal normal
: ---
Assigned To: gtkhtml-maintainers
gtkhtml-maintainers
gnome[unmaintained]
Depends on:
Blocks:
 
 
Reported: 2010-04-30 13:49 UTC by Pepijn Schmitz
Modified: 2017-02-09 13:36 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Pepijn Schmitz 2010-04-30 13:49:11 UTC
When you reply to an HTML formatted email in which someone has used a numbered list, and you insert text between the entries of such a list, the entries get renumbered!

To reproduce:

1. Receive an HTML-formatted email with a numbered list in it. For instance, a list with three entries: 1, 2 and 3.
2. Reply to the email.
3. Insert text between the list entries in the quoted text, between items 1 and 2, and between 2 and 3.
4. Observe that the list items in the quoted text get renumbered 1, 1 and 1.

What's probably happening is that the act of inserting text between the list items makes the editor split the list into two lists, and the HTML renderer just restarts numbering at 1 at the start of each new list.

I see two potential solutions:

1. The HTML editor should make sure that when it splits an ordered list, it uses CSS styles to make the second list continue numbering where the first list ended. See for example http://www.arraystudio.com/as-workshop/make-ol-list-start-from-number-different-than-1-using-css.html

2. When replying to an HTML formatted email, Evolution should convert all ordered lists to unordered ones with the number inserted into the text. This way the numbers will stay intact when the list is split. This solution may be more robust, because it does not depend on the recipient's mail client correctly implementing the counter-reset CSS property.

Discovered on Ubuntu Karmic Koala 64-bit, with Evolution 2.28.1-0ubuntu2 and libgtkhtml3.14-19. See also Ubuntu bug 572315: https://bugs.launchpad.net/ubuntu/+source/evolution/+bug/572315
Comment 1 André Klapper 2017-02-09 13:36:19 UTC
GtkHtml is not under active development anymore. 
Evolution (its main consumer) switched to a WebKit backend a while ago. 
It is currently unlikely that there will be any further GtkHtml development.

Closing this report as WONTFIX as part of Bugzilla Housekeeping (bug 778387) to reflect reality. Please feel free to reopen this bug report in the future if anyone takes the responsibility for active development again.