-
Bug
-
Resolution: Not an Issue
-
P2
-
None
-
5.0
-
unknown
-
windows_xp
The ISV has provided a code snippet and two rtf files. The code reads a file named as a parameter into a DefaultStyledDocument object and uses the RTFEditorKit class' getText method to read the document contents into a string.
When this is done with the fine.rtf document, the string variable includes \n characters between the fields found in the rtf source. When done with the problem.rtf document, there are no \n characters and the document contents become a string on one line. The preferred behavior is that shown with the fine.rtf file.
Both files are generated the same way and should produce the same result when sent through the RTFTest.java code.
When this is done with the fine.rtf document, the string variable includes \n characters between the fields found in the rtf source. When done with the problem.rtf document, there are no \n characters and the document contents become a string on one line. The preferred behavior is that shown with the fine.rtf file.
Both files are generated the same way and should produce the same result when sent through the RTFTest.java code.