diff options
-rw-r--r-- | system/application/models/file_mod.php | 3 | ||||
-rw-r--r-- | system/application/views/file/html_footer.php | 1 |
2 files changed, 2 insertions, 2 deletions
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 '<td class="markdownrender"><pre>'."\n"; + echo '<td class="markdownrender">'."\n"; passthru('/usr/bin/perl /usr/bin/perlbin/vendor/Markdown.pl '.escapeshellarg($file)); } else { echo '<td class="numbers"><pre>'; @@ -186,6 +186,7 @@ class File_mod extends Model { passthru('/usr/bin/perl -ne \'print "<a href=\"#n$.\" class=\"no\" id=\"n$.\" name=\"n$.\">$.</a>\n"\' '.escapeshellarg($file)); echo '</pre></td><td class="code"><pre>'."\n"; echo shell_exec(FCPATH.'scripts/syntax-highlighting.sh '.escapeshellarg($filedata['filename']).'.'.escapeshellarg($mode).' < '.escapeshellarg($file)); + echo '</pre>'; } 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 @@ -</pre> </td> </tr> </table> |