diff --git a/lib/rocco.rb b/lib/rocco.rb index 9e2a0eb..f91895e 100644 --- a/lib/rocco.rb +++ b/lib/rocco.rb @@ -176,7 +176,7 @@ class Rocco # Do some post-processing on the pygments output to split things back # into sections and remove partial `
` blocks.
code_html = code_html.
- split(/\n*#{@options[:comment_chars]} DIVIDER<\/span>\n*/m).
+ split(/\n*#{@options[:comment_chars]} DIVIDER<\/span>\n*/m).
map { |code| code.sub(/\n?/m, '') }.
map { |code| code.sub(/\n?<\/pre><\/div>\n/m, '') }