[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 {
width: auto;
font-family: "Consolas","Bitstream Vera Sans Mono","Courier New",Courier,monospace;
padding: 10px 5px;
padding: 10px 5px 0px;
margin-left: 45px;
}

View File

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