Skip to content

Commit a4fa1f1

Browse files
committed
prevent syntax highlighter from stripping leading tabs as well
1 parent 5de36e0 commit a4fa1f1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: root/static/js/syntaxhighlighter.js

+1
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ $(function () {
5656
var getCodeLinesHtml = SyntaxHighlighter.Highlighter.prototype.getCodeLinesHtml;
5757
SyntaxHighlighter.Highlighter.prototype.getCodeLinesHtml = function(html, lineNumbers) {
5858
html = html.replace(/^ /, " ");
59+
html = html.replace(/^\t/, "	");
5960
html = getCodeLinesHtml.call(this, html, lineNumbers);
6061
return processPackages(html);
6162
};

0 commit comments

Comments
 (0)