From ba77a024d6eeb12c5e3113ab37fa8ef9e8489794 Mon Sep 17 00:00:00 2001 From: Tom Preston-Werner Date: Wed, 13 Jan 2010 22:33:38 -0800 Subject: [PATCH] fix highlighting on ruby 1.9. fixes #65 --- History.txt | 1 + lib/jekyll/tags/highlight.rb | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/History.txt b/History.txt index d28726a9..c97cd08f 100644 --- a/History.txt +++ b/History.txt @@ -2,6 +2,7 @@ * Bug Fixes * Render highlighted code for non markdown/textile pages (#116) * Expand source to full path so includes work anywhere (#101) + * Fix highlighting on Ruby 1.9 (#65) == 0.5.7 / 2010-01-12 * Minor Enhancements diff --git a/lib/jekyll/tags/highlight.rb b/lib/jekyll/tags/highlight.rb index 1fa9982c..046cf290 100644 --- a/lib/jekyll/tags/highlight.rb +++ b/lib/jekyll/tags/highlight.rb @@ -23,9 +23,9 @@ module Jekyll def render(context) if context.registers[:site].pygments - render_pygments(context, super.to_s) + render_pygments(context, super.join) else - render_codehighlighter(context, super.to_s) + render_codehighlighter(context, super.join) end end