mirror of
https://github.com/hyprwm/hyprlock.git
synced 2024-11-16 23:05:58 +01:00
widget: handle linebreaks
This commit is contained in:
parent
64dfbfcaad
commit
cb81a977c4
1 changed files with 1 additions and 0 deletions
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue