The different of "\r\n" and "\n" in report

By: tissues tempro - tissues
The different of "\r\n" and "\n" in report
2002-11-05 23:03
<textFieldExpression class="java.lang.String">
"This is the first line.\r\nThis is the secound line."
</textFieldExpression>
-----------------------------------------------------------------------

For above example, the result will be
============================
This is the first line.

This is the second line.
============================

There is a space line between them which is not what i want. Will there any setting can be done to skip the space line.


Furthermore, I found that the space line can be skip on following case.
<textFieldExpression class="java.lang.String">
"This is the first line.\nThis is the secound line."
</textFieldExpression>

The "\r\n" is stored on the database field, should i write java function to chop the "\r" char on every XML report?

Many thanks to you advice.

Regards,
Tissues


By: Paulo Soares - psoares33
RE: The different of "\r\n" and "\n" in report
2002-11-06 09:07
That bug was fixed in iText 0.93.


By: tissues tempro - tissues
RE: The different of "\r\n" and "\n" in report
2002-11-07 06:35
Done! Thanks a lot.
2001 JI Open Discussion's picture
Joined: Aug 10 2006 - 3:26am
Last seen: 17 years 1 month ago

0 Answers:

No answers yet
Feedback
randomness