Issue 73427 - problems with setting new line into XText.setString
Summary: problems with setting new line into XText.setString
Status: CLOSED NOT_AN_OOO_ISSUE
Alias: None
Product: App Dev
Classification: Unclassified
Component: api (show other issues)
Version: 3.3.0 or older (OOo)
Hardware: All Windows XP
: P3 Trivial
Target Milestone: ---
Assignee: jsc
QA Contact: issues@api
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-12 18:55 UTC by rpavelic
Modified: 2013-02-24 21:09 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description rpavelic 2007-01-12 18:55:19 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")
Comment 1 jsc 2007-01-15 09:41:19 UTC
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.
Comment 2 jsc 2007-01-15 09:42:29 UTC
closed
Comment 3 rpavelic 2007-01-15 10:16:14 UTC
I understand that it expects just \n but I'm saying this in not expected 
behaviour (for me) and should be considered a bug.