only strip newlines when rendering highlight blocks (#3265)

This commit is contained in:
Kevin Ushey 2015-01-09 00:07:11 -08:00
parent d47b882af2
commit b92274b101
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ eos
def render(context)
prefix = context["highlighter_prefix"] || ""
suffix = context["highlighter_suffix"] || ""
code = super.to_s.strip
code = super.to_s.gsub(/^\n+|\n+$/, '')
is_safe = !!context.registers[:site].safe