mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-01 00:55:28 +00:00
implement setMono data method
This commit is contained in:
parent
d300c7b836
commit
6d15d7b137
2 changed files with 15 additions and 1 deletions
|
|
@ -202,7 +202,7 @@ class Content
|
|||
|
||||
default:
|
||||
|
||||
$this->data->setPlain(
|
||||
$this->data->setMono(
|
||||
$response
|
||||
);
|
||||
|
||||
|
|
|
|||
|
|
@ -84,6 +84,20 @@ class Data
|
|||
);
|
||||
}
|
||||
|
||||
public function setMono(
|
||||
string $value
|
||||
): void
|
||||
{
|
||||
$this->gtk->set_markup(
|
||||
sprintf(
|
||||
'<tt>%s</tt>',
|
||||
htmlspecialchars(
|
||||
$value
|
||||
)
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
public function setGemtext(
|
||||
string $value,
|
||||
string | null &$title = null,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue