Apache OpenOffice (AOO) Bugzilla – Issue 73427
problems with setting new line into XText.setString
Last modified: 2013-02-24 21:09:04 UTC
Using OO2.1 with .NET and C# while setting string value to XText XText text = (XText)xCell; text.setString(value); if value contains Environment.NewLine OO displays two lines instead of one. Workaround is to use value.Replace(Environment.NewLine, "\n")
mmh, this is invalid but you can't know that because the necessary documentation detail is missing. The API expect a newline only and environment.NewLine is probably mapped to a carriage return line feed. However simply use "\n" instead of the Environment.NewLine.
closed
I understand that it expects just \n but I'm saying this in not expected behaviour (for me) and should be considered a bug.