Skip to content

Commit

Permalink
Update HTMLConverter.php
Browse files Browse the repository at this point in the history
Used PHP_EOL instead of \n and added <br/>.
dedalozzo authored Jun 5, 2017
1 parent 7116f30 commit 0bb465d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/Converter/HTMLConverter.php
Original file line number Diff line number Diff line change
@@ -186,10 +186,8 @@ function ($matches) {
return '[/center]';
break;

// Allow for newlines - If no BR tags in initial text try running through nl2br()
// http://php.net/manual/en/function.nl2br.php
case ($tag == '<br>' || $tag == '<br />'):
return "\n";
case ($tag == '<br>' || $tag == '<br/>' || $tag == '<br />'):
return PHP_EOL;
break;

default:

0 comments on commit 0bb465d

Please sign in to comment.