Merge pull request #1245 from annando/1412-horizontal-ruler-libertree

empty line before horizontal ruler
This commit is contained in:
Tobias Diekershoff 2014-12-14 07:55:26 +01:00
commit fb11e047ba

View file

@ -90,8 +90,9 @@ function bb2diaspora($Text,$preserve_nl = false, $fordiaspora = true) {
} else { } else {
$Text = bbcode($Text, $preserve_nl, false, 4); $Text = bbcode($Text, $preserve_nl, false, 4);
// Libertree doesn't convert a harizontal rule if there isn't a linefeed // Libertree doesn't convert a harizontal rule if there isn't a linefeed
$Text = str_replace("<hr />", "<br /><hr />", $Text); $Text = str_replace(array("<hr />", "<hr>"), array("<br /><hr />", "<br><hr>"), $Text);
} }
// Now convert HTML to Markdown // Now convert HTML to Markdown