[issue #195] Fixed line numbering with files contains <>

This commit is contained in:
George Vinogradov 2012-03-02 19:50:17 +04:00
parent 6cfb5d0c3d
commit 7b37846a54
2 changed files with 4 additions and 4 deletions

View File

@ -299,7 +299,7 @@ table.tablesorter tbody td a .issue_title {
#output.formatted { #output.formatted {
width: auto; width: auto;
font-family: "Consolas","Bitstream Vera Sans Mono","Courier New",Courier,monospace; font-family: "Consolas","Bitstream Vera Sans Mono","Courier New",Courier,monospace;
padding: 10px 5px; padding: 10px 5px 0px;
margin-left: 45px; margin-left: 45px;
} }

View File

@ -38,7 +38,7 @@
%pre#code %pre#code
=#{render_blob(@blob)} =#{render_blob(@blob)}
:preserve :preserve
#{@blob.data.encode_to_default.html_safe} #{h(@blob.data.encode_to_default).html_safe}
.both .both
- when :binary - when :binary
%table.table.blob %table.table.blob
@ -51,6 +51,6 @@
<br/> <br/>
:javascript :javascript
$(document).ready(function() { $(document).ready(function() {
//CodeMirror.runMode(document.getElementById("code").innerHTML, "#{@blob.mime_type}", var text = $('#code').innerHTML.replace(/&amp;/gi, '&');
// document.getElementById("output")); CodeMirror.runMode(text, "#{@blob.mime_type}", document.getElementById("output"));
}); });