Skip to content

Commit

Permalink
parse: fix the bug from previous commit 124081c for the layout too
Browse files Browse the repository at this point in the history
  • Loading branch information
Toni500github committed Aug 29, 2024
1 parent a016458 commit 41f859f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/parse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ std::string parse(const std::string_view input, systemInfo_t& systemInfo, std::s
// prevent issue where in the ascii art,
// theres at first either ${1} or ${0}
// and that's a problem with pango markup
bool firstrun_noclr = (parsingLaoyut ? false : true);
bool firstrun_noclr = true;
static std::vector<std::string> auto_colors;

if (!config.sep_reset.empty() && parsingLaoyut)
Expand Down Expand Up @@ -277,7 +277,7 @@ std::string parse(const std::string_view input, systemInfo_t& systemInfo, std::s
jump:
if (command == "1")
{
if (firstrun_noclr && !parsingLaoyut)
if (firstrun_noclr)
output =
output.replace(dollarSignIndex, (endBracketIndex + 1) - dollarSignIndex,
config.gui ? "<span weight='bold'>" : NOCOLOR_BOLD);
Expand All @@ -288,7 +288,7 @@ std::string parse(const std::string_view input, systemInfo_t& systemInfo, std::s
}
else if (command == "0")
{
if (firstrun_noclr && !parsingLaoyut)
if (firstrun_noclr)
output = output.replace(dollarSignIndex, (endBracketIndex + 1) - dollarSignIndex,
config.gui ? "<span>" : NOCOLOR);
else
Expand Down Expand Up @@ -404,7 +404,7 @@ std::string parse(const std::string_view input, systemInfo_t& systemInfo, std::s
auto_colors.push_back(command);
}

if (config.gui && firstrun_noclr && !parsingLaoyut)
if (config.gui && firstrun_noclr)
output += "</span>";
}
break;
Expand Down

0 comments on commit 41f859f

Please sign in to comment.