Skip to content

Commit

Permalink
removed newline from php highlighting
Browse files Browse the repository at this point in the history
  • Loading branch information
cebe committed Jan 30, 2014
1 parent ea7e576 commit 1ecc775
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extensions/apidoc/helpers/ApiMarkdown.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function highlight(&$block, &$markup)
if (strncmp($block['text'], '<?php', 5) === 0) {
$text = highlight_string(trim($block['text']), true);
} else {
$text = highlight_string("<?php\n".trim($block['text']), true);
$text = highlight_string("<?php ".trim($block['text']), true);
$text = str_replace('&lt;?php', '', $text);
}
// remove <code> tags added by php
Expand Down

0 comments on commit 1ecc775

Please sign in to comment.