From 211c703e7625776dd029bb013ab831f8aa07a9f8 Mon Sep 17 00:00:00 2001 From: John Bintz Date: Thu, 5 Jul 2012 15:57:46 -0400 Subject: [PATCH] fix pygments failures, fall back to just

---
 bin/sharkfrown | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/bin/sharkfrown b/bin/sharkfrown
index efe7d74..f53e436 100755
--- a/bin/sharkfrown
+++ b/bin/sharkfrown
@@ -9,7 +9,10 @@ class Sharkfrown
   class PygmentizeHTML < Redcarpet::Render::HTML
     def block_code(code, language)
       require 'pygmentize'
-      Pygmentize.process(code, language)
+      result = Pygmentize.process(code, language)
+      result = "
#{code}
" if result.empty? + + result end end