From cb81a977c46590ab139d9b3625800c9cce802151 Mon Sep 17 00:00:00 2001 From: Vaxry Date: Tue, 20 Feb 2024 01:12:06 +0000 Subject: [PATCH] widget: handle linebreaks --- src/renderer/widgets/IWidget.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/renderer/widgets/IWidget.cpp b/src/renderer/widgets/IWidget.cpp index 72e1939..417ceb0 100644 --- a/src/renderer/widgets/IWidget.cpp +++ b/src/renderer/widgets/IWidget.cpp @@ -46,6 +46,7 @@ IWidget::SFormatResult IWidget::formatString(std::string in) { IWidget::SFormatResult result; replaceAll(in, "$USER", std::string{getlogin()}); + replaceAll(in, "
", std::string{"\n"}); if (in.contains("$TIME")) { replaceAll(in, "$TIME", getTime());