From 55700ff584a1b123a3140b758f9e7afa2da37407 Mon Sep 17 00:00:00 2001 From: Burke Libbey Date: Tue, 30 Mar 2010 14:38:01 -0500 Subject: [PATCH] change a class in a regex to deal with the way pygments outputs C code. --- lib/rocco.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, '') }