aboutsummaryrefslogtreecommitdiff
path: root/plugins/code_block.rb
diff options
context:
space:
mode:
authorAlexandre Perrin <alex.kaworu@gmail.com>2013-05-11 16:48:36 +0300
committerAlexandre Perrin <alex.kaworu@gmail.com>2013-05-11 16:48:36 +0300
commitfe28c0b518e47f7929772eaaab7b0118ddcfbaad (patch)
treec68fafe5e03079bd28b7e2dfd8b7a36a9c323492 /plugins/code_block.rb
parente83dfccc4f6f2db6283918af1743e63278807089 (diff)
downloadmy_new_personal_website-fe28c0b518e47f7929772eaaab7b0118ddcfbaad.tar.xz
my_new_personal_website-fe28c0b518e47f7929772eaaab7b0118ddcfbaad.zip
Fix codeblock rendering with HAML when there is a filetype defined.
Diffstat (limited to '')
-rw-r--r--plugins/code_block.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/code_block.rb b/plugins/code_block.rb
index c70e181e..46620d86 100644
--- a/plugins/code_block.rb
+++ b/plugins/code_block.rb
@@ -79,7 +79,7 @@ module Jekyll
source = "<figure class='code'>"
source += @caption if @caption
if @filetype
- source += " #{highlight(code, @filetype)}</figure>"
+ source += "#{highlight(code, @filetype)}</figure>"
else
source += "#{tableize_code(code.lstrip.rstrip.gsub(/</,'&lt;'))}</figure>"
end