I am developing a plugin that renders JSDoc / documentation content into the IntelliJ documentation popup. Everything looks correct visually in the HTML (for example:
SystemCapability.ArkUI.ArkUI.Full
However, when I copy the text from the rendered documentation and paste it somewhere else, it becomes:
SystemCapability. ArkUI. ArkUI. Full
So a space is automatically added after each . (dot), even though my HTML string is clean and contains no extra spaces or newlines.
My questions:
-
Is this behavior expected from the IntelliJ documentation system (JCEF/Swing copy serializer)?
-
Is there any recommended way to avoid these inserted spaces, e.g. by changing how I generate the HTML, or by customizing the copy behavior?
-
Would I need to implement a custom copy action (via
DocumentationActionProvideror similar) in order to normalize the copied text, or is there a built-in solution?
example:
/**
* @syscap SystemCapability.ArkUI.ArkUI.Full
*/
function animateT2o(value: AnimateParam, event: () => void): void;