Comment #7 on issue 1569 by vesterbaek: Code review linebreaks are not
preserved in all views (i.e. mail)
http://code.google.com/p/reviewboard/issues/detail?id=1569
The review description field wraps long lines in the browser => I'm used to
just
typing and having the text wrapped.
In the sent out emails, the description is not wrapped (at least on my
lotus notes
web client), causing very wide emails. My html/css has gone a bit rusty,
but telling
the pre's to break if necessary seems to do the trick. I've added the
following to
email_base.html:
<header>
<style type="text/css">
pre {
overflow-x: auto; /* Use horizontal scroller if needed; for Firefox 2,
not
needed in Firefox 3 */
white-space: pre-wrap; /* css-3 */
white-space: -moz-pre-wrap !important; /* Mozilla, since 1999 */
white-space: -pre-wrap; /* Opera 4-6 */
white-space: -o-pre-wrap; /* Opera 7 */
/* width: 99%; */
word-wrap: break-word; /* Internet Explorer 5.5+ */
}
</style>
</header>
The css is from here:
http://www.longren.org/2006/09/27/wrapping-text-inside-pre-tags/. There
might be a
better way of achieving the same ...
--
You received this message because you are subscribed to the Google Groups
"reviewboard-issues" group.
To post to this group, send email to reviewboard-iss...@googlegroups.com.
To unsubscribe from this group, send email to
reviewboard-issues+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/reviewboard-issues?hl=en.