mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
add plain text maker
This commit is contained in:
parent
4ed7a0093b
commit
a372dd80bd
2 changed files with 20 additions and 4 deletions
|
|
@ -161,7 +161,7 @@ Glib::ustring Reader::make(
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Header
|
// Quote
|
||||||
Glib::ustring quote;
|
Glib::ustring quote;
|
||||||
|
|
||||||
if (Line::Match::quote(line, quote))
|
if (Line::Match::quote(line, quote))
|
||||||
|
|
@ -177,10 +177,11 @@ Glib::ustring Reader::make(
|
||||||
|
|
||||||
// @TODO other tags..
|
// @TODO other tags..
|
||||||
|
|
||||||
|
// Default
|
||||||
pango.append(
|
pango.append(
|
||||||
line.append(
|
Make::plain(
|
||||||
"\n"
|
line
|
||||||
) // @TODO
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -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(
|
Glib::ustring Reader::Make::quote(
|
||||||
const Glib::ustring & TEXT
|
const Glib::ustring & TEXT
|
||||||
) {
|
) {
|
||||||
|
|
|
||||||
|
|
@ -52,6 +52,10 @@ namespace app::browser::main::tab::page::content::text::gemini
|
||||||
const Glib::ustring & ALT
|
const Glib::ustring & ALT
|
||||||
);
|
);
|
||||||
|
|
||||||
|
static Glib::ustring plain(
|
||||||
|
const Glib::ustring & TEXT
|
||||||
|
);
|
||||||
|
|
||||||
static Glib::ustring quote(
|
static Glib::ustring quote(
|
||||||
const Glib::ustring & TEXT
|
const Glib::ustring & TEXT
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue