From 3d26e1d233496afc28420d42b6071538f2f058ba Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Sat, 13 Dec 2014 23:07:15 +0100 Subject: [PATCH] When converting bbcode for Libertree then an empty line has to be before a honrizontal ruler. --- include/bb2diaspora.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/bb2diaspora.php b/include/bb2diaspora.php index d836f325e8..7107c49139 100644 --- a/include/bb2diaspora.php +++ b/include/bb2diaspora.php @@ -90,8 +90,9 @@ function bb2diaspora($Text,$preserve_nl = false, $fordiaspora = true) { } else { $Text = bbcode($Text, $preserve_nl, false, 4); + // Libertree doesn't convert a harizontal rule if there isn't a linefeed - $Text = str_replace("
", "

", $Text); + $Text = str_replace(array("
", "
"), array("

", "

"), $Text); } // Now convert HTML to Markdown -- 2.39.5