update to albino v1.3.2

This commit is contained in:
rick
2011-03-10 10:33:35 -08:00
parent ecb44b50e1
commit 32a33e0c15
3 changed files with 3 additions and 15 deletions
-12
View File
@@ -2,16 +2,4 @@ require 'albino/multi'
class Gollum::Albino < Albino::Multi
self.bin = ::Albino::Multi.bin
def colorize(options = {})
case out = super
when Array then out.each { |s| fix_html(s) }
else fix_html(out)
end
end
def fix_html(html)
html.sub!(%r{</pre></div>\Z}, "</pre>\n</div>")
html
end
end
+2 -2
View File
@@ -396,8 +396,8 @@ module Gollum
highlighted = begin
blocks.size.zero? ? [] : Gollum::Albino.colorize(blocks)
rescue ::Albino::ShellArgumentError, ::POSIX::Spawn::TimeoutExceeded,
::POSIX::Spawn::MaximumOutputExceeded
rescue ::Albino::ShellArgumentError, ::Albino::TimeoutExceeded,
::Albino::MaximumOutputExceeded
[]
end