Differences in LF & CR with windows & mac smart client

I have a strange problem that i think must be related to the differnces between how line feeds and carriage returns are being written out by servoy when using the great XHMTL rendering plugin.

My solution has worked perfectly in mac for three months in development, but today when i port it to windows smart client it suddenly dies a death and the XML output file wont render.

Some of it may be that i put some ‘\n’ in my field that i am outputing to the file, but i also think some may be due to carriage returns that have been put into text fields that i then incorporate into the the output string. Maybe they have been entered on a mac, but then are different as it is outputing on the windows environment.

Same solution, same information, when i send it to the plugin on the mac it is fine, when i do it on Windows, i get an error 500.

Has anyone come across this before and how do i fix it?

Thanks

David

you can try to use java.lang.System.getProperty(“line.separator”) instead of \n

Or you can use our Tools Plug-in (http://www.it2be.com/index.php/plugins- … ls-plug-in).

It can give you that information (and much much more) for the client and the server.
Best of all, for you ;), it is free…

Thanks Guys,

I thought this was an issue with line feeds, but actually it was a problem with the plugin,

but Jeff is a great guy and has fixed the problem with the XMLRendederer plugin and my output rocks and rolls!

I would thoroughly recommend anyone producing output from Servoy that wants it nicely formatted as a document or report to PDF has a look at the XMLRenderer plugin. It is very powerful and simple, although XHTML Strict is a little fussy!

Thanks for the info though this will be useful for other things.

David