Skip to content

Commit

Permalink
Fix: include posted source code in a code element
Browse files Browse the repository at this point in the history
fixes #65
  • Loading branch information
auge8472 committed Nov 27, 2019
1 parent 2417a0c commit 029a32a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ function parse_code($string) {
else $p_class='posting';
$string = $string[1];
$string = str_replace('<br />','',$string);
$string = '</p><pre><span class="code">'.$string.'</span></pre><p class="'.$p_class.'">';
$string = '</p><pre><code>'.$string.'</code></pre><p class="'.$p_class.'">';
return $string;
}

Expand Down
2 changes: 1 addition & 1 deletion themes/mlf1-classic/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ p.postingforma {
font-size: 11px;
color: red;
}
.code {
code {
font-family: courier-new, courier, monospace;
font-size: 13px;
color: #000080;
Expand Down

0 comments on commit 029a32a

Please sign in to comment.