implement preformatted multiline text

This commit is contained in:
yggverse 2024-07-07 02:39:15 +03:00
parent 38cb571189
commit 18e0df585a

View File

@ -82,7 +82,8 @@ class Data
public function setGemtext(
string $value,
string | null &$title = null
string | null &$title = null,
bool $preformatted = false
): void
{
$document = new Document(
@ -109,7 +110,9 @@ class Data
else
{
// @TODO multiline
$line[] = $preformatted ? '</tt>' : '<tt>';
$preformatted = !($preformatted); // toggle
}
break;