From d0f56ef1ca9c62211c0a32db4b0895f0f7186607 Mon Sep 17 00:00:00 2001 From: Brandon Mathis Date: Tue, 26 Jul 2011 23:56:14 -0400 Subject: [PATCH] fixed bug in backtick_codeblock where indentations were being unintentionally removed --- plugins/octopress_filters.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/octopress_filters.rb b/plugins/octopress_filters.rb index e85466e..92622b3 100644 --- a/plugins/octopress_filters.rb +++ b/plugins/octopress_filters.rb @@ -28,7 +28,7 @@ module OctopressFilters def backtick_codeblock(input) input.gsub /

`{3}\s(\w+)<\/p>.+

(.+)<\/code><\/pre>.+`{3}<\/p>/m do
       lang = $1
-      str  = $2.gsub(/^\s{4}/, '').gsub('<','<').gsub('>','>')
+      str  = $2.gsub('<','<').gsub('>','>')
       highlight(str, lang)
     end
   end
@@ -96,3 +96,4 @@ module OctopressFilters
   end
 end
 Liquid::Template.register_filter OctopressFilters
+