GNOME Bugzilla – Bug 686012
<pre> tag causes massive horizontal scrolling
Last modified: 2015-08-13 15:27:02 UTC
I didn't file it with gtkhtml, because I believe mail reader / preview no longer uses gtkhtml. Some automatic email disclaimers use a <pre> tag. This causes massive horizontal scrolling. I'd really like to have something like: pre { white-space: pre-wrap; }
Can you please provide a screenshot or better the specific email (stripped of any sensitive information) that causes such behavior?
I sent a mail from my corporate account, except I also logged a bug report with them, and they fixed the disclaimer. Doh. Except now they add a html disclaimer to the plain-text bit.
Still in 3.8.2
I agree it makes sense with usual texts, but what if someone is going through a patch, where the wrapping can be confusing? There might be more formats where this wrapping is not expected, neither appreciated. You can tweak the CSS yourself (until you update evolution) at /usr/share/evolution/3.8/theme/webview.css if you want to play a bit with it.
By the way, I committed a related change at [1], that's for git master (3.11.1+), but also the same change for 3.10.1+, which turns on wrapping of long URLs. [1] https://git.gnome.org/browse/evolution/commit/?id=00005fe
webview.css does not help. All messages are wrapped in: <div class="part-container-nostyle"> <iframe ....> which seems to strip all styles set in webview.css. 'User Agent Stylesheet' (I assume Webkit) sets style="pre {white-space:pre}" so it strips any inherited styles too.
There is a related bug #739955, which contains an initial patch (which has certain issues). I'd not mangle the <pre> tags, it's not a good idea, it might be that the sender has a reason to set text in a <pre> where he/she wants to have it with certain wrapping. The <pre> for text/plain parts generated by the evolution are not affected in the above bug report, they are treated differently. I'm marking this as a duplicate of the above bug (which I would usually do the other way around, but the newer bug report contains more developer work). *** This bug has been marked as a duplicate of bug 739955 ***