From ca9258d2106204750d688e8ab0b2ce916b214828 Mon Sep 17 00:00:00 2001 From: Lukas Epple Date: Sun, 6 Oct 2013 15:24:00 +0200 Subject: Fix display error when redering markdown Initial-patch-by: Lukas Epple Switch from to
like we did for pygments. Signed-off-by: Florian Pritz --- application/controllers/file.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'application/controllers/file.php') diff --git a/application/controllers/file.php b/application/controllers/file.php index f6891c4bf..4d88ed465 100644 --- a/application/controllers/file.php +++ b/application/controllers/file.php @@ -145,9 +145,11 @@ class File extends MY_Controller { if ($lexer == "rmd") { ob_start(); - echo '
'; - echo '
'."\n"; + echo '
'."\n"; + echo '
'."\n"; + echo '
'."\n"; passthru('perl '.FCPATH.'scripts/Markdown.pl '.escapeshellarg($file), $cached["return_value"]); + echo '
'; $cached["output"] = ob_get_contents(); ob_end_clean(); -- cgit v1.2.3-24-g4f1b