C
C#14mo ago
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?
5 Replies
Diesel Geezer
Diesel GeezerOP14mo ago
The RTF of the sentence "This is a test" when everything is normal:
No description
Diesel Geezer
Diesel GeezerOP14mo ago
The RTF after i add a whitespace between "a" and "test"
Diesel Geezer
Diesel GeezerOP14mo ago
No description
Diesel Geezer
Diesel GeezerOP14mo ago
It becomes "This is a test"
Accord
Accord14mo ago
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server