RFR: 8180276: JTextPane getText return extra when mixed with methods of Document [v5]

Alexey Ivanov aivanov at openjdk.java.net
Mon Apr 11 10:29:05 UTC 2022


On Mon, 11 Apr 2022 10:08:24 GMT, Tejesh R <duke at openjdk.java.net> wrote:

> > 
> 
> If I add '\n' after the string then it would be "\n\r\n" which would be mapped to "\r\n\r\n" resulting in extra space......

Resulting in extra space?

As far as I can see, both samples have two line breaks and they're preserved. *With the updated code*, right?

-------------

PR: https://git.openjdk.java.net/jdk/pull/8122



More information about the client-libs-dev mailing list