mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-03-13 06:01:21 +00:00
implement preformatted multiline text
This commit is contained in:
parent
38cb571189
commit
18e0df585a
@ -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…
x
Reference in New Issue
Block a user