Preserve new lines for syntax highlighting

This commit is contained in:
Joshua Peek
2011-07-05 15:50:33 -05:00
parent aaed4ee1d4
commit 93330c5be3
2 changed files with 11 additions and 1 deletions

View File

@@ -141,7 +141,7 @@ module Linguist
#
# Returns html String
def colorize(text)
Albino.colorize(text, self)
Albino.new(text, self).colorize(:O => 'stripnl=false')
end
# Public: Highlight syntax of text without the outer highlight div