[vwnc] non breaking space and wordwrap in TextEditorView

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[vwnc] non breaking space and wordwrap in TextEditorView

Rob Vens-2
It seems to me the word wrap in TextEditorView does not take into
account a non breaking space (NBSP, character value 160). Anybody an
idea whether this can be repaired and how? I was dabbling with the
TextMeasurer shared variables but that got me nowhere.
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] non breaking space and wordwrap in TextEditorView

Michael Lucas-Smith-2
Rob Vens wrote:
> It seems to me the word wrap in TextEditorView does not take into
> account a non breaking space (NBSP, character value 160). Anybody an
> idea whether this can be repaired and how? I was dabbling with the
> TextMeasurer shared variables but that got me nowhere.
>  
I just tried it out and the NBSP character, 160, does indeed not act as
a wrapping point for me. That's correct. Where were you trying this and
how did it manifest?

Michael
_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc
Reply | Threaded
Open this post in threaded view
|

Re: [vwnc] non breaking space and wordwrap in TextEditorView

Rob Vens-2
You are right, I checked in other views and there the behaviour is
correct. But not in my view...
I created a canvas, with a custom view component that I initialised
with a custom TextEditorView subclass. Since I did not override much
behaviour my naïve impression was that it was an inherent problem in
TextEditorView. I have not yet found out why it is not working in my
view.

2009/11/11 Michael Lucas-Smith <[hidden email]>:

> Rob Vens wrote:
>>
>> It seems to me the word wrap in TextEditorView does not take into
>> account a non breaking space (NBSP, character value 160). Anybody an
>> idea whether this can be repaired and how? I was dabbling with the
>> TextMeasurer shared variables but that got me nowhere.
>>
>
> I just tried it out and the NBSP character, 160, does indeed not act as a
> wrapping point for me. That's correct. Where were you trying this and how
> did it manifest?
>
> Michael
>

_______________________________________________
vwnc mailing list
[hidden email]
http://lists.cs.uiuc.edu/mailman/listinfo/vwnc