[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 {
|
#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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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(/&/gi, '&');
|
||||||
// document.getElementById("output"));
|
CodeMirror.runMode(text, "#{@blob.mime_type}", document.getElementById("output"));
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue