mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-27 22:49:25 +02:00
fix { and } in multiline
This commit is contained in:
@@ -129,7 +129,7 @@ std::vector<std::string> CMessage::breakText(std::string text, size_t maxLineWid
|
|||||||
if(wordBreak != ui32(-1))
|
if(wordBreak != ui32(-1))
|
||||||
{
|
{
|
||||||
currPos = wordBreak;
|
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;
|
opened = false;
|
||||||
color = "";
|
color = "";
|
||||||
|
|||||||
Reference in New Issue
Block a user