render all revision log messages as <pre class="vc_log">...</pre>

Add CSS for vc_log to set it italic (as it was already shown in most places),
and set some proprietary properties to turn on word wrapping for Mozilla,
Opera and IE, and the equivalent standard CSS3 property (for when browsers
support it).


git-svn-id: http://viewvc.tigris.org/svn/viewvc/trunk@882 8cb11bc2-c004-0410-86c3-e597b4017df7
remotes/tags/1.0.0-rc1
jhenstridge 2004-07-19 08:49:39 +00:00
parent 8a3030d4cf
commit 31ac07eb78
6 changed files with 17 additions and 5 deletions

View File

@ -139,7 +139,7 @@
[end]
[end]
<pre>[entries.html_log]</pre>
<pre class="vc_log">[entries.html_log]</pre>
[end]
[include "include/paging.ezt"]

View File

@ -154,7 +154,7 @@
[end]
[end]
<b>Log: </b><pre><i>[entries.html_log]</i></pre>
<b>Log: </b><pre class="vc_log">[entries.html_log]</pre>
</td>
</tr>

View File

@ -38,7 +38,7 @@ File: [nav_file]
[is state "dead"]
<br><b><i>FILE REMOVED</i></b>
[end]
<pre>[log]</pre>
<pre class="vc_log">[log]</pre>
[else]
Revision: <b>[rev]</b><br>
[if-any tag]

View File

@ -215,7 +215,7 @@
<tr class="vc_row_[if-index commits even]even[else]odd[end]">
<td>&nbsp;</td>
<td colspan=5><b>Log:</b><br>
<pre>[commits.desc]</pre></td>
<pre class="vc_log">[commits.desc]</pre></td>
</tr>
[end]
[# ---]

View File

@ -66,7 +66,7 @@
<tr class="vc_row_[if-index commits even]even[else]odd[end]">
<td>&nbsp;</td>
<td colspan="5"><b>Log:</b><br>
<pre><i>[commits.desc]<i></pre></td>
<pre class="vc_log">[commits.desc]</pre></td>
</tr>
</tbody>
[end]

View File

@ -39,6 +39,18 @@ a:active { color: #0000ff; }
}
/*** Log messages ***/
.vc_log {
font-style: italic;
/* unfortunately, white-space: pre-wrap isn't widely supported ... */
white-space: -moz-pre-wrap; /* Mozilla based browsers */
white-space: -pre-wrap; /* Opera 4 - 6 */
white-space: -o-pre-wrap; /* Opera >= 7 */
white-space: pre-wrap; /* CSS3 */
word-wrap: break-word; /* IE 5.5+ */
}
/*** Markup Summary Header ***/
.vc_summary {
background-color: #eeeeee;