fix highlighting on ruby 1.9. fixes #65

This commit is contained in:
Tom Preston-Werner 2010-01-13 22:33:38 -08:00
parent 0756d1f765
commit ba77a024d6
2 changed files with 3 additions and 2 deletions

View File

@ -2,6 +2,7 @@
* Bug Fixes * Bug Fixes
* Render highlighted code for non markdown/textile pages (#116) * Render highlighted code for non markdown/textile pages (#116)
* Expand source to full path so includes work anywhere (#101) * Expand source to full path so includes work anywhere (#101)
* Fix highlighting on Ruby 1.9 (#65)
== 0.5.7 / 2010-01-12 == 0.5.7 / 2010-01-12
* Minor Enhancements * Minor Enhancements

View File

@ -23,9 +23,9 @@ module Jekyll
def render(context) def render(context)
if context.registers[:site].pygments if context.registers[:site].pygments
render_pygments(context, super.to_s) render_pygments(context, super.join)
else else
render_codehighlighter(context, super.to_s) render_codehighlighter(context, super.join)
end end
end end