Browse Source

implement preformatted multiline text

PHP-GTK3
yggverse 5 months ago
parent
commit
18e0df585a
  1. 7
      src/Entity/Browser/Container/Tab/Page/Content/Data.php

7
src/Entity/Browser/Container/Tab/Page/Content/Data.php

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

Loading…
Cancel
Save