mirror of
https://tildegit.org/sbgodin/HtmGem.git
synced 2023-08-25 13:53:12 +02:00
FIX: each blockquote lines are in <p>
This commit is contained in:
parent
c37549d50c
commit
91abafdce0
@ -283,10 +283,13 @@ class GemtextTranslate_html {
|
||||
$output .= "<pre>\n$text\n</pre>\n";
|
||||
break;
|
||||
case ">":
|
||||
$text = implode("\n", $node["texts"]);
|
||||
self::htmlPrepare($text);
|
||||
if ($textDecoration) self::addTextDecoration($text);
|
||||
$output .= "<blockquote>\n$text\n</blockquote>\n";
|
||||
$output .= "<blockquote>\n";
|
||||
foreach ($node["texts"] as $text) {
|
||||
self::htmlPrepare($text);
|
||||
if ($textDecoration) self::addTextDecoration($text);
|
||||
$output .= "<p>$text</p>\n";
|
||||
}
|
||||
$output .= "</blockquote>\n";
|
||||
break;
|
||||
case "=>":
|
||||
$link = $node["link"];
|
||||
|
@ -1,27 +1,27 @@
|
||||
<p>This text is made of empty quotes :</p>
|
||||
<blockquote>
|
||||
|
||||
<p> </p>
|
||||
</blockquote>
|
||||
<p> </p>
|
||||
<p>Quotes with one word:</p>
|
||||
<blockquote>
|
||||
one
|
||||
<p>one</p>
|
||||
</blockquote>
|
||||
<p>Quotes with two words:</p>
|
||||
<blockquote>
|
||||
A B
|
||||
<p>A B</p>
|
||||
</blockquote>
|
||||
<p> </p>
|
||||
<p>Several quotes :</p>
|
||||
<blockquote>
|
||||
1
|
||||
2
|
||||
3
|
||||
<p>1</p>
|
||||
<p>2</p>
|
||||
<p>3</p>
|
||||
</blockquote>
|
||||
<p> </p>
|
||||
<p>Quotes with an empty one in between:</p>
|
||||
<blockquote>
|
||||
1
|
||||
|
||||
3
|
||||
<p>1</p>
|
||||
<p> </p>
|
||||
<p>3</p>
|
||||
</blockquote>
|
||||
|
Loading…
x
Reference in New Issue
Block a user