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";
|
$output .= "<pre>\n$text\n</pre>\n";
|
||||||
break;
|
break;
|
||||||
case ">":
|
case ">":
|
||||||
$text = implode("\n", $node["texts"]);
|
$output .= "<blockquote>\n";
|
||||||
self::htmlPrepare($text);
|
foreach ($node["texts"] as $text) {
|
||||||
if ($textDecoration) self::addTextDecoration($text);
|
self::htmlPrepare($text);
|
||||||
$output .= "<blockquote>\n$text\n</blockquote>\n";
|
if ($textDecoration) self::addTextDecoration($text);
|
||||||
|
$output .= "<p>$text</p>\n";
|
||||||
|
}
|
||||||
|
$output .= "</blockquote>\n";
|
||||||
break;
|
break;
|
||||||
case "=>":
|
case "=>":
|
||||||
$link = $node["link"];
|
$link = $node["link"];
|
||||||
|
|
|
@ -1,27 +1,27 @@
|
||||||
<p>This text is made of empty quotes :</p>
|
<p>This text is made of empty quotes :</p>
|
||||||
<blockquote>
|
<blockquote>
|
||||||
|
<p> </p>
|
||||||
</blockquote>
|
</blockquote>
|
||||||
<p> </p>
|
<p> </p>
|
||||||
<p>Quotes with one word:</p>
|
<p>Quotes with one word:</p>
|
||||||
<blockquote>
|
<blockquote>
|
||||||
one
|
<p>one</p>
|
||||||
</blockquote>
|
</blockquote>
|
||||||
<p>Quotes with two words:</p>
|
<p>Quotes with two words:</p>
|
||||||
<blockquote>
|
<blockquote>
|
||||||
A B
|
<p>A B</p>
|
||||||
</blockquote>
|
</blockquote>
|
||||||
<p> </p>
|
<p> </p>
|
||||||
<p>Several quotes :</p>
|
<p>Several quotes :</p>
|
||||||
<blockquote>
|
<blockquote>
|
||||||
1
|
<p>1</p>
|
||||||
2
|
<p>2</p>
|
||||||
3
|
<p>3</p>
|
||||||
</blockquote>
|
</blockquote>
|
||||||
<p> </p>
|
<p> </p>
|
||||||
<p>Quotes with an empty one in between:</p>
|
<p>Quotes with an empty one in between:</p>
|
||||||
<blockquote>
|
<blockquote>
|
||||||
1
|
<p>1</p>
|
||||||
|
<p> </p>
|
||||||
3
|
<p>3</p>
|
||||||
</blockquote>
|
</blockquote>
|
||||||
|
|
Loading…
Reference in New Issue