GNOME Bugzilla – Bug 692003
Print of text/html with no html/body end tag cuts content
Last modified: 2013-01-18 13:46:06 UTC
Created attachment 233744 [details] mbox file A local electrostore is notorious for sending malformed messages, see attachment. Starting with <html><body><pre>, no closing tags are present in the mail. This is rendered properly in the WebKitGtk widget but trying to print gives me just "<" and nothing else. evolution-3.6.2
Created attachment 233745 [details] Print preview result
Confirming, I see the same with the attached message. My other HTML-only message works fine, somehow.
Created attachment 233750 [details] [review] evo patch for evolution; OK, the issue is with the tag-cutter on text/html parts, which is used only for printing (to workaround a webkit bug with iframe print, if I recall correctly). The test message has start tags <html><body>, but no end tags, and the tag-cutter cut just at the name of the first tag, which was part of "<pre>", from which left only the first "<". This makes no cutting if there is no end tag.
Created commit 590b471 in evo master (3.7.5+) Created commit f03fab6 in evo gnome-3-6 (3.6.3+)