-
Enhancement
-
Resolution: Duplicate
-
P4
-
None
-
14.0.1
-
x86_64
-
windows_10
A DESCRIPTION OF THE PROBLEM :
Javadoc currently uses the "Zero Width Space" (U+200B / ​) character at multiple places to hint where the browser may break lines, see alsoJDK-8175200 (and JDK-8176792). This solves the display problem but causes issues when the user tries to copy text from the documentation to the clipboard.
Both Firefox 78.0.1 (64-Bit) and Edge 81.0.416.86 (Official build) (64-bit) copy the "zero width space" within a text selection to clipboard. This can be quite annoying because many text editors do not display this character and the user then wonders after pasting the clipboard content why they are getting mismatches when comparing it with other text.
Would it be possible to refrain from using the "zero width space" and instead using the functionality provided by CSS (in case this can be solved using it)?
---------------
Reproduction steps:
1. Open the documentation of any class, with a method with at least one parameter, in the browser, e.g. https://docs.oracle.com/en/java/javase/14/docs/api/java.base/java/lang/String.html#charAt(int)
2. Select the text "charAt(int index)" of the documentation
3. Paste it e.g. in a text editor and look at the displayed length of the text (e.g. by looking at the column numbers)
(x) It is 18 instead of the expected 17 because it contains the "zero width space"
Javadoc currently uses the "Zero Width Space" (U+200B / ​) character at multiple places to hint where the browser may break lines, see also
Both Firefox 78.0.1 (64-Bit) and Edge 81.0.416.86 (Official build) (64-bit) copy the "zero width space" within a text selection to clipboard. This can be quite annoying because many text editors do not display this character and the user then wonders after pasting the clipboard content why they are getting mismatches when comparing it with other text.
Would it be possible to refrain from using the "zero width space" and instead using the functionality provided by CSS (in case this can be solved using it)?
---------------
Reproduction steps:
1. Open the documentation of any class, with a method with at least one parameter, in the browser, e.g. https://docs.oracle.com/en/java/javase/14/docs/api/java.base/java/lang/String.html#charAt(int)
2. Select the text "charAt(int index)" of the documentation
3. Paste it e.g. in a text editor and look at the displayed length of the text (e.g. by looking at the column numbers)
(x) It is 18 instead of the expected 17 because it contains the "zero width space"
- duplicates
-
JDK-8266779 Use <wbr> instead of ZERO_WIDTH_SPACE
-
- Resolved
-
- relates to
-
JDK-8176792 long method signature names should be formatted correctly in the summary table
-
- Open
-
-
JDK-8175200 Long method signatures disturb Method Summary table
-
- Closed
-