widget: handle linebreaks

This commit is contained in:
Vaxry 2024-02-20 01:12:06 +00:00
parent 64dfbfcaad
commit cb81a977c4

View file

@ -46,6 +46,7 @@ IWidget::SFormatResult IWidget::formatString(std::string in) {
IWidget::SFormatResult result;
replaceAll(in, "$USER", std::string{getlogin()});
replaceAll(in, "<br/>", std::string{"\n"});
if (in.contains("$TIME")) {
replaceAll(in, "$TIME", getTime());