From 198be61e7c07e2307bac49ada98967d41cf07045 Mon Sep 17 00:00:00 2001 From: Mike West Date: Thu, 14 Oct 2010 18:31:20 +0200 Subject: [PATCH] Fixing code highlighting in bash mode Rocco splits against ``, which works fine for Ruby where the `span` has a class of `c1`, but fails for Bash (and probably other languages), where the `span` has a class of `c`. The fix is trivial. --- lib/rocco.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, '') }