Unix line breaks in Multi line TextPresenter

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

Unix line breaks in Multi line TextPresenter

Günther Schmidt
Hi,

I'm importing text via XML-RPC that I want to present in a MultiLine
TextPresenter.

The text has unix style line breaks, so I get weird glyps in the Multi
line view.

Can I change this by using some type of converter?

How would I do that?

Günther


Reply | Threaded
Open this post in threaded view
|

Re: Unix line breaks in Multi line TextPresenter

Don Rylander-3
Günther:
"Günther Schmidt" <[hidden email]> wrote in message
news:42ca8338$[hidden email]...
> Hi,
>
> I'm importing text via XML-RPC that I want to present in a MultiLine
> TextPresenter.
>
> The text has unix style line breaks, so I get weird glyps in the Multi
> line view.
>
> Can I change this by using some type of converter?
Assuming it's a String, you can use String>>withNormalizedLineDelimiters.
>
> How would I do that?
Assuming it's a String, you can use String>>withNormalizedLineDelimiters.
Then you could create a TypeConverter of your own, maybe just using blocks
with an instance of PluggableTypeConverter.  Look at the class comments for
a more thorough explanation.

HTH,

Don

>
> Günther


Reply | Threaded
Open this post in threaded view
|

Re: Unix line breaks in Multi line TextPresenter

Günther Schmidt
Don,

thanks, that worked very nice, at least one way.

No I have to find out how to do the reverse of

String>>withNormalizedLineDelimiters.

Günther