Skip to content

Commit

Permalink
Merge pull request #5 from mhatma/newlines-pr
Browse files Browse the repository at this point in the history
Allow for new lines
  • Loading branch information
dedalozzo authored Jun 5, 2017
2 parents 53feb81 + 0bb465d commit 47abd34
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Converter/HTMLConverter.php
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,10 @@ function ($matches) {
return '[/center]';
break;

case ($tag == '<br>' || $tag == '<br/>' || $tag == '<br />'):
return PHP_EOL;
break;

default:
return $tag;
}
Expand Down Expand Up @@ -214,4 +218,4 @@ public function toBBCode() {
return $this->text;
}

}
}

0 comments on commit 47abd34

Please sign in to comment.