no code div for images
authorChristian Weiske <cweiske@cweiske.de>
Sun, 15 Apr 2012 20:14:25 +0000 (22:14 +0200)
committerChristian Weiske <cweiske@cweiske.de>
Sun, 15 Apr 2012 20:14:25 +0000 (22:14 +0200)
data/templates/display-file.htm
src/phorkie/Renderer/Geshi.php

index a768b7c..8a25506 100644 (file)
@@ -6,7 +6,5 @@
   {% endfor %}
   <h3 id="{{file.getFilename}}">{{file.getFilename}}<a class="anchorlink" href="#{{file.getFilename}}"></a></h3>
  </div>
- <div class="code">
   {{file.getRenderedContent(toolres)|raw}}
- </div>
 </div>
index d2d3430..1fc633e 100644 (file)
@@ -27,7 +27,9 @@ class Renderer_Geshi
             $geshi->set_highlight_lines_extra_style('background-color: #F2DEDE');
         }
 
-        return $geshi->parse_code();
+        return '<div class="code">'
+            . $geshi->parse_code()
+            . '</div>';
     }
 
     /**