Skip to content

Commit

Permalink
fix code tag display original
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaomlove committed Jul 30, 2023
1 parent 3775f39 commit 98274db
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/constants.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
defined('VERSION_NUMBER') || define('VERSION_NUMBER', '1.8.6');
defined('RELEASE_DATE') || define('RELEASE_DATE', '2023-07-29');
defined('RELEASE_DATE') || define('RELEASE_DATE', '2023-07-30');
defined('IN_TRACKER') || define('IN_TRACKER', false);
defined('PROJECTNAME') || define("PROJECTNAME","NexusPHP");
defined('NEXUSPHPURL') || define("NEXUSPHPURL","https://nexusphp.org");
Expand Down
2 changes: 1 addition & 1 deletion include/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ function formatUrl($url, $newWindow = false, $text = '', $linkClass = '') {
}
function formatCode($text) {
global $lang_functions;
return addTempCode("<br /><div class=\"codetop\">".$lang_functions['text_code']."</div><div class=\"codemain\">$text</div><br />");
return addTempCode("<br /><div class=\"codetop\">".$lang_functions['text_code']."</div><div class=\"codemain\"><pre><code>$text</code></pre></div><br />");
}

function formatImg($src, $enableImageResizer, $image_max_width, $image_max_height, $imgId = "") {
Expand Down
3 changes: 3 additions & 0 deletions public/styles/nexus.css
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,6 @@ img.hitandrun {
.text-muted {
color: #7d7b7b
}
.codemain>pre {
margin: 0;
}

0 comments on commit 98274db

Please sign in to comment.