Copying a code block does not include leading spaces

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

Test case:

        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:

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. ↩︎

1 Like