summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2013-02-25 20:41:23 +0100
committerFlorian Pritz <bluewind@xinu.at>2013-02-25 20:49:50 +0100
commitb23ae3d851ba3f664b2242fa5c4dcb4c294c0de1 (patch)
treee94b07fb51543fb6678334d5f463e7afdecfa251
parentb99ae1000c31cabc8621b24ebedd64ed4ad67267 (diff)
pygmentize: Disable newline stripping
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rw-r--r--application/controllers/file.php2
1 files changed, 1 insertions, 1 deletions
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 .= '<div class="highlight"><pre>'."\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();