Geshi with pre tags was crashing templates sometimes
[gitphp.git] / include / display.git_blob.php
blob:a/include/display.git_blob.php -> blob:b/include/display.git_blob.php
--- a/include/display.git_blob.php
+++ b/include/display.git_blob.php
@@ -63,6 +63,7 @@
 					if (isset($lang) && (strlen($lang) > 0)) {
 						$geshi->set_source($catout);
 						$geshi->set_language($lang);
+						$geshi->set_header_type(GESHI_HEADER_DIV);
 						$geshi->enable_line_numbers(GESHI_FANCY_LINE_NUMBERS);
 						$tpl->assign("geshiout",$geshi->parse_code());
 						$usedgeshi = TRUE;

comments