mirror of
https://github.com/kennethreitz-archive/gitx.git
synced 2026-06-05 23:40:18 +00:00
Use <pre> tag for commit message so that whitespace displays correctly
The contents of the commit message is inserted into the “#message” tag directly. If we use a <div> tag, then any whitespace in the commit message will get collapsed down into a single space as HTML requires. Since the CSS stylesheet calls for a monospaced font, it makes sense to use a <pre> tag instead, so that whitespace will be preserved.
This commit is contained in:
committed by
Johannes Gilger
parent
e1f3a33a44
commit
e5104b4069
@@ -48,7 +48,7 @@
|
||||
</div>
|
||||
<hr>
|
||||
<div id="message_files">
|
||||
<div id="message"></div>
|
||||
<pre id="message"></pre>
|
||||
<div id="files"></div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user