On Fri, 8 Apr 2022 11:31:07 GMT, Prasanta Sadhukhan <psadhuk...@openjdk.org> wrote:
>> No, presently it was writing /r/r/n and with fix it will write /r/n for >> every line ending...... /r was causing for carriage return and /r/n for an >> extra empty line on Text pane....... > > But should /r/r/n cause 2 line feeds? /r should be just carriage return to > cause caret to move from last column to first, why it is inserting new line? It is common to treat `\r` as new line if it's not followed by `\n`. In a visual editor `\r` doesn't do anything. Yet it's an interesting detail that wasn't covered in the initial evaluation. ------------- PR: https://git.openjdk.java.net/jdk/pull/8122