[issue #195] Fixed line numbering with files contains <>
This commit is contained in:
parent
6cfb5d0c3d
commit
7b37846a54
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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(/&/gi, '&');
|
||||
CodeMirror.runMode(text, "#{@blob.mime_type}", document.getElementById("output"));
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue