Hi,

I've figured out a strange  behavior while adding text.

Adding multiple lines to an XTextDocument works fine on linux when using method 
in LISTING but not on Windows.
In both cases (using "\n" or "\r\n") on Windows are added 2 newlines for every 
single newline.

I dont't know where to begin debugging, sry for the few information i've 
provided.

can you give me a hint, please?

i will send more information and code, if you tell me what may be helpful.



Greetz





LISTING
        private String makeLineFeed(String[] txt) {
                StringBuilder readyTxt = new StringBuilder();
                for (String line : txt) {
                        readyTxt.append(line);
                        //readyTxt.append("\r\n");
                        readyTxt.append("\n");
                }
                return readyTxt.toString();
        }

--
-----------------------------------------------------------------
To unsubscribe send email to dev-unsubscr...@api.openoffice.org
For additional commands send email to sy...@api.openoffice.org
with Subject: help

Reply via email to