When I tried to run the codes in the Wiki of TextView,
I modified the codes because I wanted to highlight some chars instead of words.
Here's the code:
And then I got the result like this:
There're many unexpected line breaks after the target char ('t' in this example).
Is this a bug?
Or there's another way to achieve the goal: highlight single char without line breaks?
PS: I also want to refresh the screen char by char, that's why I called time.Sleep() in each round.
When I tried to run the codes in the Wiki of TextView, I modified the codes because I wanted to highlight some chars instead of words. Here's the code:
And then I got the result like this:
There're many unexpected line breaks after the target char ('t' in this example).
Is this a bug? Or there's another way to achieve the goal: highlight single char without line breaks?
PS: I also want to refresh the screen char by char, that's why I called
time.Sleep()
in each round.My Env: