* Contributor(s): Marc Schumann <wurblzap@gmail.com>
*/
+.bz_comment_text {
+ white-space: pre;
+ word-wrap: break-word;
+}
+
#footer #useful-links li {
padding-bottom: 0.8ex;
}
margin-bottom: 2em;
}
+/* The rules for these classes make international text wrap correctly,
+ even for languages like Japanese that have no spaces. */
+.bz_comment_text {
+ font-family: monospace;
+ /* Note that these must all be on separate lines or they stop
+ working in Konqueror. */
+ white-space: pre-wrap; /* CSS 3 & 2.1 */
+ white-space: -moz-pre-wrap; /* Gecko */
+ white-space: -pre-wrap; /* Opera 4-6 */
+ white-space: -o-pre-wrap; /* Opera 7 */
+}
+
+.bz_comment_text {
+ width: 50em;
+}
+
.bz_comment_head {
background-color: #e0e0e0;
}
span.quote {
color: #65379c;
+ /* Make quoted text not wrap. */
+ white-space: pre;
}
table#flags th,
[% ELSE %]
[% wrapped_comment = comment.body FILTER wrap_comment %]
[% END %]
-<pre[% ' id="comment_text_' _ count _ '"' IF mode == "edit" %]>
+<pre class="bz_comment_text"
+ [% ' id="comment_text_' _ count _ '"' IF mode == "edit" %]>
[%- wrapped_comment FILTER quoteUrls(bug.bug_id) -%]
</pre>
</div>
[% IF cgi.param("comment") %]
<p>
Your comment was:<br>
- <blockquote><pre>[% cgi.param("comment") FILTER wrap_comment FILTER html %]</pre></blockquote>
+ <blockquote><pre class="bz_comment_text">
+ [% cgi.param("comment") FILTER wrap_comment FILTER html %]
+ </pre></blockquote>
</p>
[% END %]
<hr>
<p>
-<pre>
+<pre class="bz_comment_text">
[%- cgi.param("text") FILTER wrap_comment FILTER quoteUrls FILTER html -%]
</pre>
</p>
<hr>
<p>
-<pre>
+<pre class="bz_comment_text">
[%- cgi.param("text") FILTER wrap_comment FILTER quoteUrls -%]
</pre>
</p>