> 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: Fix handling HTML message ------------- Changes: - all: https://git.openjdk.org/jdk/pull/10081/files - new: https://git.openjdk.org/jdk/pull/10081/files/deba74f3..2b00d425 Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=10081&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=10081&range=00-01 Stats: 93 lines in 1 file changed: 50 ins; 35 del; 8 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
