Browse Source

implement preformatted multiline text

PHP-GTK3
yggverse 4 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 @@ -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 @@ -109,7 +110,9 @@ class Data
else
{
// @TODO multiline
$line[] = $preformatted ? '</tt>' : '<tt>';
$preformatted = !($preformatted); // toggle
}
break;

Loading…
Cancel
Save