fix malformed markup in unit_list and unit_recall

error cause to show text of color code instead of use for color level number(same fix what for 37b7a83ce0 (diff-010538c81e10d3e4eeadfb49808ab52a6fe1becc787cb247c6a854b8f4c1900aL104))
This commit is contained in:
newfrenchy83 2024-11-11 14:08:42 +01:00 committed by Subhraman Sarkar
parent b2af5d8488
commit 9330997d10
2 changed files with 2 additions and 2 deletions

View file

@ -53,7 +53,7 @@ static std::string format_level_string(const int level)
} else if(level == 2) {
return markup::bold(level);
} else { // level must be > 2
return markup::bold(markup::span_color("#ffffff", level));
return markup::span_color("#ffffff", markup::bold(level));
}
}

View file

@ -99,7 +99,7 @@ static std::string format_level_string(const int level, bool recallable)
} else if(level == 2) {
return markup::bold(level);
} else {
return markup::bold(markup::span_color("#ffffff", level));
return markup::span_color("#ffffff", markup::bold(level));
}
}