FIX: adds line feed inside a blockquote

Example:
> line_1
> line_2

Before :
line_1 line_2

After :
Line_1
Line_2
This commit is contained in:
Christophe HENRY 2021-03-21 00:14:55 +01:00
parent 710bd1bf07
commit c1299a2bdb
1 changed files with 5 additions and 3 deletions

View File

@ -271,9 +271,11 @@ class GemtextTranslate_html {
echo "<pre>\n$text\n</pre>\n";
break;
case ">":
$text = implode("\n", $node["texts"]);
self::htmlPrepare($text);
if ($textDecoration) self::addTextDecoration($text);
foreach ($node["texts"] as &$text) {
self::htmlPrepare($text);
if ($textDecoration) self::addTextDecoration($text);
}
$text = implode("<br>\n", $node["texts"]);
echo "<blockquote>\n$text\n</blockquote>\n";
break;
case "=>":