Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6629715

text conversion of RTF docs is unpredictable

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P2 P2
    • None
    • 5.0
    • client-libs
    • 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.

            gsm Sergey Groznyh (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: