# Copying text from documentation adds unwanted spaces after dots

**URL:** <https://platform.jetbrains.com/t/copying-text-from-documentation-adds-unwanted-spaces-after-dots/2722>\
**Category:** IntelliJ Platform\
**Created:** [September 12, 2025, 8:06am UTC](https://platform.jetbrains.com/t/copying-text-from-documentation-adds-unwanted-spaces-after-dots/2722 "2025-09-12T08:06:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kemal\_Oncel](https://avatars.discourse-cdn.com/v4/letter/k/b5ac83/32.png) [@Kemal\_Oncel](https://platform.jetbrains.com/u/Kemal_Oncel)\
**Post date:** [September 12, 2025, 8:06am UTC](https://platform.jetbrains.com/t/copying-text-from-documentation-adds-unwanted-spaces-after-dots/2722/1 "2025-09-12T08:06:33Z")

</div>

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:

1. Is this behavior expected from the IntelliJ documentation system (JCEF/Swing copy serializer)?

2. 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?

3. Would I need to implement a custom copy action (via `DocumentationActionProvider` or similar) in order to normalize the copied text, or is there a built-in solution?

example:

```auto
/**
 * @syscap SystemCapability.ArkUI.ArkUI.Full
 */
function animateT2o(value: AnimateParam, event: () => void): void;

```
