From 2aec1077aa706bb4ae45e635efa8dd8c16327830 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Wed, 23 Jun 2010 22:45:16 +0200 Subject: don't wrap rendered markdown code into

Signed-off-by: Florian Pritz 
---
 system/application/models/file_mod.php        | 3 ++-
 system/application/views/file/html_footer.php | 1 -
 2 files changed, 2 insertions(+), 2 deletions(-)

(limited to 'system/application')

diff --git a/system/application/models/file_mod.php b/system/application/models/file_mod.php
index 3aca81605..645858ecd 100644
--- a/system/application/models/file_mod.php
+++ b/system/application/models/file_mod.php
@@ -177,7 +177,7 @@ class File_mod extends Model {
           header("Content-Type: text/html\n");
           echo $this->load->view('file/html_header', $data, true);
           if ($mode == "rmd") {
-            echo '
'."\n";
+            echo ''."\n";
             passthru('/usr/bin/perl /usr/bin/perlbin/vendor/Markdown.pl '.escapeshellarg($file));
           } else {
             echo '
';
@@ -186,6 +186,7 @@ class File_mod extends Model {
             passthru('/usr/bin/perl -ne \'print "$.\n"\' '.escapeshellarg($file));
             echo '
'."\n";
             echo shell_exec(FCPATH.'scripts/syntax-highlighting.sh '.escapeshellarg($filedata['filename']).'.'.escapeshellarg($mode).' < '.escapeshellarg($file));
+            echo '
'; } echo $this->load->view('file/html_footer', $data, true); } else { diff --git a/system/application/views/file/html_footer.php b/system/application/views/file/html_footer.php index 9e449440f..ddc460a39 100644 --- a/system/application/views/file/html_footer.php +++ b/system/application/views/file/html_footer.php @@ -1,4 +1,3 @@ -
-- cgit v1.2.3-24-g4f1b