mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 00:55:28 +00:00
implement preformatted multiline text
This commit is contained in:
parent
38cb571189
commit
18e0df585a
1 changed files with 5 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue