diff --git a/src/Entity/Browser/Container/Tab/Page/Content/Data.php b/src/Entity/Browser/Container/Tab/Page/Content/Data.php index 63d4e1f2..5aff2688 100644 --- a/src/Entity/Browser/Container/Tab/Page/Content/Data.php +++ b/src/Entity/Browser/Container/Tab/Page/Content/Data.php @@ -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 ? '' : ''; + + $preformatted = !($preformatted); // toggle } break;