diff --git a/lib-htmgem.php b/lib-htmgem.php index e6be3f8..8b1305f 100644 --- a/lib-htmgem.php +++ b/lib-htmgem.php @@ -283,10 +283,13 @@ class GemtextTranslate_html { $output .= "
\n$text\n
\n"; break; case ">": - $text = implode("\n", $node["texts"]); - self::htmlPrepare($text); - if ($textDecoration) self::addTextDecoration($text); - $output .= "
\n$text\n
\n"; + $output .= "
\n"; + foreach ($node["texts"] as $text) { + self::htmlPrepare($text); + if ($textDecoration) self::addTextDecoration($text); + $output .= "

$text

\n"; + } + $output .= "
\n"; break; case "=>": $link = $node["link"]; diff --git a/tests/files_with_html/quotes.gmi.html b/tests/files_with_html/quotes.gmi.html index eb4f3ad..3a6b0ec 100644 --- a/tests/files_with_html/quotes.gmi.html +++ b/tests/files_with_html/quotes.gmi.html @@ -1,27 +1,27 @@

This text is made of empty quotes :

-  +

 

 

Quotes with one word:

-one +

one

Quotes with two words:

-A B +

A B

 

Several quotes :

-1 -2 -3 +

1

+

2

+

3

 

Quotes with an empty one in between:

-1 - -3 +

1

+

 

+

3