From b23ae3d851ba3f664b2242fa5c4dcb4c294c0de1 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Mon, 25 Feb 2013 20:41:23 +0100 Subject: pygmentize: Disable newline stripping Signed-off-by: Florian Pritz --- application/controllers/file.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/controllers/file.php b/application/controllers/file.php index 5bd829713..3e1946554 100644 --- a/application/controllers/file.php +++ b/application/controllers/file.php @@ -209,7 +209,7 @@ class File extends CI_Controller { $output .= '
'."\n";
 
 		ob_start();
-		passthru('pygmentize -F codetagify -O encoding=guess,outencoding=utf8 -l '.escapeshellarg($lexer).' -f html '.escapeshellarg($file), $return_value);
+		passthru('pygmentize -F codetagify -O encoding=guess,outencoding=utf8,stripnl=False -l '.escapeshellarg($lexer).' -f html '.escapeshellarg($file), $return_value);
 		$buf = ob_get_contents();
 		ob_end_clean();
 
-- 
cgit v1.2.3-24-g4f1b