C#C
C#3y ago
5 replies
Diesel Geezer

❔ Typing whitespace creates 2 more after parsing RTF from RichTextBox and then re-applying it

Lets say i press space between 2 words. When i parse the RTF and then re apply it, i get 2 more spaces so 3 in total. When i remove spaces nothing crazy happens. This happens only when i type them. Though when i type a whitespace in the end of the sentence and THEN i type a word everything is fine. This only happens when i type whitespaces between 2 already existing words/characters. What is going on here?
Was this page helpful?