Describe the bug
Currently autowrapping does not take into account <COL> tag. The tag affects string length, making WrapText(text) function to insert \n in different place in comparison to when there is no tag.
The problem goes further, and there is a chance that the position at which the new line symbol is inserted will be inside the color name or the tag, which makes the color to behave incorrectly.
Expected behavior<COL> should be filtered out and autowrapping on text with <COL> should behave the same as on text without <COL>.
Screenshots
`"Adjust Width Multiplier for Orange Damage Numbers."`
![image](https://user-images.githubusercontent.com/30152047/235291964-78ef423b-ead1-46b6-ba60-0c2810660a07.png)
`"Adjust Width Multiplier for
Orange Damage Numbers."`
![image](https://user-images.githubusercontent.com/30152047/235292042-0abf9aeb-517f-4cb4-8be2-5057fc5ac41d.png)
`"Adjust Width Multiplier for <\nCOL ORANGE_GCT>Orange Damage Numbers."`
![image](https://user-images.githubusercontent.com/30152047/235292568-085876d5-2d9f-4845-8cc7-9f68a3dc5330.png)
`"Adjust Width Multiplier for Orange Damage Numbers."`
![image](https://user-images.githubusercontent.com/30152047/235292534-3de8cb47-9263-4b05-b9ba-298cd221d67d.png)
`"Adjust Width Multiplier for
Orange Damage Numbers."`
![image](https://user-images.githubusercontent.com/30152047/235292550-bc8edbed-ee9b-4709-8e0e-a50a2336fd7f.png)
`"Adjust Width Multiplier for
Orange Damage Numbers."`
![image](https://user-images.githubusercontent.com/30152047/235292501-c184b32e-392a-4b22-8714-e8288f4773f3.png)
`"Adjust Width Multiplier for
Orange Damage Numbers."`
![image](https://user-images.githubusercontent.com/30152047/235292332-6f298556-0415-4bb0-b30e-d2d648462f01.png)
`"Adjust Width Multiplier for
Orange Damage Numbers."`
![image](https://user-images.githubusercontent.com/30152047/235292612-8a90b867-b702-4b64-9371-9f66b9276b88.png)
`"Adjust Width Multiplier for
Orange<\n/COL> Damage Numbers."`
![image](https://user-images.githubusercontent.com/30152047/235292636-0c55166f-6ce7-4b99-b473-d0943e62ba74.png)
`"Adjust Width Multiplier for
Orange\nCOL> Damage Numbers."`
![image](https://user-images.githubusercontent.com/30152047/235292658-d1646108-c1e7-4de0-bc0a-993c82517a55.png)
`"Adjust Width Multiplier for
Orange Damage Numbers."`
![image](https://user-images.githubusercontent.com/30152047/235292674-0d105295-5a95-4e88-aee5-f0f0fe933612.png)
`"Adjust Width Multiplier for
Describe the bug Currently autowrapping does not take into account
<COL>
tag. The tag affects string length, makingWrapText(text)
function to insert\n
in different place in comparison to when there is no tag.The problem goes further, and there is a chance that the position at which the new line symbol is inserted will be inside the color name or the tag, which makes the color to behave incorrectly.
Expected behavior
<COL>
should be filtered out and autowrapping on text with<COL>
should behave the same as on text without<COL>
.Screenshots
`"Adjust Width Multiplier for Orange Damage Numbers."` ![image](https://user-images.githubusercontent.com/30152047/235291964-78ef423b-ead1-46b6-ba60-0c2810660a07.png) `"Adjust Width Multiplier for