diff --git a/lib/rocco.rb b/lib/rocco.rb index 72a204e..963bc41 100644 --- a/lib/rocco.rb +++ b/lib/rocco.rb @@ -175,7 +175,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*# DIVIDER<\/span>\n*/m).
+ split(/\n*# DIVIDER<\/span>\n*/m).
map { |code| code.sub(/\n?/m, '') }.
map { |code| code.sub(/\n?<\/pre><\/div>\n/m, '') }