Commit 4134b38a8487bf28ac0a79f073e8136eabf7708c

Authored by Evan Lucas
1 parent bf855d19

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,7 +59,7 @@ class Dispatcher
59 59
60 initHighlight: -> 60 initHighlight: ->
61 $('.highlight pre code').each (i, e) -> 61 $('.highlight pre code').each (i, e) ->
62 - hljs.highlightBlock(e)  
63 $(e).html($.map($(e).html().split("\n"), (line, i) -> 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 ).join("\n")) 64 ).join("\n"))
  65 + hljs.highlightBlock(e)