mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 01:25:27 +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(
|
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…
Add table
Add a link
Reference in a new issue