From c1299a2bdb5a2a35ed896bf9619645c497c1c60f Mon Sep 17 00:00:00 2001 From: Christophe HENRY Date: Sun, 21 Mar 2021 00:14:55 +0100 Subject: [PATCH] FIX: adds line feed inside a blockquote Example: > line_1 > line_2 Before : line_1 line_2 After : Line_1 Line_2 --- lib-htmgem.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib-htmgem.php b/lib-htmgem.php index d888ddd..558dbb1 100644 --- a/lib-htmgem.php +++ b/lib-htmgem.php @@ -271,9 +271,11 @@ class GemtextTranslate_html { echo "
\n$text\n
\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("
\n", $node["texts"]); echo "
\n$text\n
\n"; break; case "=>":