fix { and } in multiline

This commit is contained in:
Laserlicht
2024-10-07 18:01:20 +02:00
parent 758666d99d
commit 106dfdeb28
+1 -1
View File
@@ -129,7 +129,7 @@ std::vector<std::string> CMessage::breakText(std::string text, size_t maxLineWid
if(wordBreak != ui32(-1))
{
currPos = wordBreak;
if(text.substr(0, currPos).find('{') == std::string::npos)
if(boost::count(text.substr(0, currPos), '{') == boost::count(text.substr(0, currPos), '}'))
{
opened = false;
color = "";