# 코드 블록 복사 시 앞쪽 공백이 포함되지 않음

**URL:** <https://meta.discourse.org/t/copying-a-code-block-does-not-include-leading-spaces/414093>\
**Category:** Bug\
**Created:** [10월 6, 2026, 9:51오후 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\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [10월 6, 2026, 11:13오후 UTC](https://meta.discourse.org/t/copying-a-code-block-does-not-include-leading-spaces/414093/2 "2026-10-06T23:13:31Z")

</div>

이 버그는 아주 오래된 것으로, 2020년에 @justin이 버튼의 원래 구현을 했을 때부터 추적할 수 있습니다

> <https://github.com/discourse/discourse/pull/44310>
>
> Avoid trimming copied code block text so leading indentation, trailing
> spaces, a…nd final newlines are retained. Add coverage for post and
> generic code blocks.

---

_[View the full topic](https://meta.discourse.org/t/copying-a-code-block-does-not-include-leading-spaces/414093)._
