aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederic Hemberger <mail@frederic-hemberger.de>2011-10-11 15:46:20 +0200
committerFrederic Hemberger <mail@frederic-hemberger.de>2011-10-11 15:46:20 +0200
commit9909f16d80ae0a7a64f829ece84a60948ae9b5a5 (patch)
tree8cf284cc49017069ee6008b8986fa9ee821abf15
parent35ebe0d647dd1775a99ba476f5f26958003c951e (diff)
downloadmy_new_personal_website-9909f16d80ae0a7a64f829ece84a60948ae9b5a5.tar.xz
my_new_personal_website-9909f16d80ae0a7a64f829ece84a60948ae9b5a5.zip
Codeblock: Output source even if 'pygments_prefix' or 'pygments_suffix' is nil. Fixes #182
-rw-r--r--plugins/code_block.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/code_block.rb b/plugins/code_block.rb
index bf89feab..e175d445 100644
--- a/plugins/code_block.rb
+++ b/plugins/code_block.rb
@@ -90,6 +90,7 @@ module Jekyll
source = safe_wrap(source)
source = context['pygments_prefix'] + source if context['pygments_prefix']
source = source + context['pygments_suffix'] if context['pygments_suffix']
+ source
end
end
end