Commit 4134b38a8487bf28ac0a79f073e8136eabf7708c
1 parent
bf855d19
Exists in
spb-stable
and in
2 other branches
Fix syntax highlighting
Don't break highlighting on multi-line spans (multi-line comments for example)
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
app/assets/javascripts/dispatcher.js.coffee
... | ... | @@ -59,7 +59,7 @@ class Dispatcher |
59 | 59 | |
60 | 60 | initHighlight: -> |
61 | 61 | $('.highlight pre code').each (i, e) -> |
62 | - hljs.highlightBlock(e) | |
63 | 62 | $(e).html($.map($(e).html().split("\n"), (line, i) -> |
64 | - "<div class='line' id='LC" + (i + 1) + "'>" + line + "</div>" | |
63 | + "<span class='line' id='LC" + (i + 1) + "'>" + line + "</span>" | |
65 | 64 | ).join("\n")) |
65 | + hljs.highlightBlock(e) | ... | ... |