mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-01-29 20:44:25 +00:00
add plain text maker
This commit is contained in:
parent
4ed7a0093b
commit
a372dd80bd
@ -161,7 +161,7 @@ Glib::ustring Reader::make(
|
||||
continue;
|
||||
}
|
||||
|
||||
// Header
|
||||
// Quote
|
||||
Glib::ustring quote;
|
||||
|
||||
if (Line::Match::quote(line, quote))
|
||||
@ -177,10 +177,11 @@ Glib::ustring Reader::make(
|
||||
|
||||
// @TODO other tags..
|
||||
|
||||
// Default
|
||||
pango.append(
|
||||
line.append(
|
||||
"\n"
|
||||
) // @TODO
|
||||
Make::plain(
|
||||
line
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
@ -261,6 +262,17 @@ Glib::ustring Reader::Make::link(
|
||||
);
|
||||
}
|
||||
|
||||
Glib::ustring Reader::Make::plain(
|
||||
const Glib::ustring & TEXT
|
||||
) {
|
||||
return Glib::ustring::sprintf(
|
||||
"%s\n",
|
||||
Glib::Markup::escape_text(
|
||||
TEXT
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
Glib::ustring Reader::Make::quote(
|
||||
const Glib::ustring & TEXT
|
||||
) {
|
||||
|
@ -52,6 +52,10 @@ namespace app::browser::main::tab::page::content::text::gemini
|
||||
const Glib::ustring & ALT
|
||||
);
|
||||
|
||||
static Glib::ustring plain(
|
||||
const Glib::ustring & TEXT
|
||||
);
|
||||
|
||||
static Glib::ustring quote(
|
||||
const Glib::ustring & TEXT
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user