From 44e4a991cf7cab619edecc23bed667e4a3233560 Mon Sep 17 00:00:00 2001 From: Frederic Hemberger Date: Sun, 18 Sep 2011 21:27:42 +0200 Subject: [PATCH] Fixes styling of
code header --- plugins/code_block.rb | 6 +++--- plugins/include_code.rb | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/code_block.rb b/plugins/code_block.rb index 00b0b43..bf89fea 100644 --- a/plugins/code_block.rb +++ b/plugins/code_block.rb @@ -24,7 +24,7 @@ # # Output: # -#
+#
#
Got pain? painrelief.sh Download it! #

 # -- nicely escaped highlighted code --
@@ -37,7 +37,7 @@
 # Ooooh, sarcasm... How original!
 # {% endcodeblock %}
 #
-# 
+#
#
<sarcasm> Ooooh, sarcasm... How original!</sarcasm>
#
# @@ -80,7 +80,7 @@ module Jekyll def render(context) output = super code = super.join - source = "
" + source = "
" source += @caption if @caption if @filetype source += " #{highlight(code, @filetype)}
" diff --git a/plugins/include_code.rb b/plugins/include_code.rb index 80951cb..fc6daa3 100644 --- a/plugins/include_code.rb +++ b/plugins/include_code.rb @@ -61,7 +61,7 @@ module Jekyll @filetype = file.extname.sub('.','') if @filetype.nil? title = @title ? "#{@title} (#{file.basename})" : file.basename url = "/#{code_dir}/#{@file}" - source = "
#{title} download
\n" + source = "
#{title} download
\n" source += " #{highlight(code, @filetype)}
" safe_wrap(source) end