Subject: | BUG w/fix: Long single-line log messages are unreadable in Outlook 2003 |
Date: | Wed, 22 Nov 2006 14:45:18 -0500 |
To: | <bug-SVN-Notify [...] rt.cpan.org> |
From: | "Larry Silverman" <lsilverman [...] trackabout.com> |
Here's a screenshot of what I'm talking about:
In this particular case, the checkin log message contained a single long
line of text with no trailing carriage return. In Html.pm, the Log
Message is being formatted using a pre tag, and the CSS speficies the
pre tag should use overflow:auto. When viewing the email in my copy of
Outlook 2003 (I assume it's using my IE7 to render), the Log Message is
completely illegibile. The horizontal scrollbar appears and completely
obstructs the log message.
My solution was to add an inline style to the <pre> tags surrounding the
log message. I chose to use an inline style instead of modifying the
CSS because this problem only affects the log message, as it's likely
the only place where a single line would be rendered in pre tags. diffs
and patches would almost certainly be more than one line. I could have
added a new class and assigned the class to the pre tag also.
Anyway, the only change is to set style="word-wrap: break-word". This
allows wrapping.
This effectively eliminates the horizontal scrollbar altogether,
allowing the log message to wrap. For me, that's just fine, since
there's no great benefit to preventing a Log Message from wrapping. I'm
not a fan of the horizontal scrollbars to begin with.
Hope this helps,
Larry Silverman
Chief Technology Officer
TrackAbout, Inc.
www.trackabout.com