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

Clarify spec for DefaultEditorKit.EndOfLineStringProperty

XMLWordPrintable

      Currently the spec for DefaultEditorKit.EndOfLineStringProperty says: "When reading a document if a CRLF is encountered a property with this name is added and the value will be "\r\n"." It is not clear.

      In fact, the property value stores the line end. It is set when the file is read. When the file is saved, the the value of the 'EndOfLineStringProperty' property is used as the line break written to disk.

            aivanov Alexey Ivanov
            aivanov Alexey Ivanov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: