# Copying a code block does not include leading spaces

**URL:** <https://meta.discourse.org/t/copying-a-code-block-does-not-include-leading-spaces/414093>\
**Category:** Bug\
**Created:** [October 6, 2026, 9:51pm UTC](https://meta.discourse.org/t/copying-a-code-block-does-not-include-leading-spaces/414093 "2026-10-06T21:51:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![supermathie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/supermathie/32/507518_2.png) [@supermathie](https://meta.discourse.org/u/supermathie)\
**Post date:** [October 6, 2026, 9:51pm UTC](https://meta.discourse.org/t/copying-a-code-block-does-not-include-leading-spaces/414093/1 "2026-10-06T21:51:33Z")

</div>

Using the copy button\[1\] to copy a code block does not include any leading spaces.

Test case:

```plaintext
        GPU0 GPU1 NIC0 NIC1 CPU Affinity NUMA Affinity GPU NUMA ID
GPU0 X NV12 NODE NODE 0-15 0 N/A
GPU1 NV12 X PHB PHB 0-15 0 N/A
NIC0 NODE PHB X PIX                             
NIC1 NODE PHB PIX X

```

What is actually copied:

```plaintext
GPU0 GPU1 NIC0 NIC1 CPU Affinity NUMA Affinity GPU NUMA ID
GPU0 X NV12 NODE NODE 0-15 0 N/A
GPU1 NV12 X PHB PHB 0-15 0 N/A
NIC0 NODE PHB X PIX                             
NIC1 NODE PHB PIX X

```

Same thing happens in both posts and chat.

Chromium on Linux.

* * *

1.
