> If JOptionPane's message contains both linefeed/cursor return and HTML tag 
> ie, **<html\>" + "This is a test\n" + "</html\>**,
> then  "</html\>" will be shown in the JOptionPane dialog box because after 
> every new line it creates a new messageComponent so the characters after the 
> newline ie "</html\>"tag will be considered as a new JLabel string and 
> displayed.
> 
> Fix is to ignore closing html tag if appearing after newline from the 
> displayed string.

Prasanta Sadhukhan has updated the pull request incrementally with one 
additional commit since the last revision:

  Add comments

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/10081/files
  - new: https://git.openjdk.org/jdk/pull/10081/files/c6901154..00a7ddfe

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=10081&range=03
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=10081&range=02-03

  Stats: 5 lines in 1 file changed: 0 ins; 0 del; 5 mod
  Patch: https://git.openjdk.org/jdk/pull/10081.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/10081/head:pull/10081

PR: https://git.openjdk.org/jdk/pull/10081

Reply via email to