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 686012 - <pre> tag causes massive horizontal scrolling
<pre> tag causes massive horizontal scrolling
Status: RESOLVED DUPLICATE of bug 739955
Product: evolution
Classification: Applications
Component: Mailer
3.6.x (obsolete)
Other Linux
: Normal enhancement
: ---
Assigned To: evolution-mail-maintainers
Evolution QA team
evolution[formatter]
Depends on:
Blocks:
 
 
Reported: 2012-10-12 08:32 UTC by Berend De Schouwer
Modified: 2015-08-13 15:27 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Berend De Schouwer 2012-10-12 08:32:05 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;
}
Comment 1 Dan Vrátil 2012-10-12 10:39:59 UTC
Can you please provide a screenshot or better the specific email (stripped of any sensitive information) that causes such behavior?
Comment 2 Berend De Schouwer 2012-10-12 11:16:02 UTC
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.
Comment 3 Berend De Schouwer 2013-05-20 12:38:33 UTC
Still in 3.8.2
Comment 4 Milan Crha 2013-10-09 13:39:35 UTC
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.
Comment 5 Milan Crha 2013-10-09 14:28:34 UTC
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
Comment 6 Berend De Schouwer 2014-02-27 09:44:33 UTC
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.
Comment 7 Milan Crha 2015-08-13 15:27:02 UTC
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 ***