페이지에서 드래그하여 텍스트를 선택하여 복사하면 다음과 같은 결과가 나옵니다:
하지만 복사 버튼을 사용하여 복사하면:
붙여넣기 시 예상대로 텍스트만 제대로 가져와집니다.
“복사” 버튼을 사용하여 클립보드에 저장된 내용은 다음과 같습니다:
TEXT:
b'```sh\n\tsystemctl reboot\n\t```'
text/plain:
b'```sh\n\tsystemctl reboot\n\t```'
페이지에서 드래그하여 선택했을 때의 클립보드 내용은 다음과 같습니다:
TEXT:
b'\t```sh\n\tsystemctl reboot\n\t```'
text/html:
b'<span style="color: rgb(199, 199, 199); font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace; font-size: 17.008px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; background-color: rgb(60, 60, 60); text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; display: inline !important; float: none;">\t```sh\n\tsystemctl reboot\n\t```</span>'
text/plain:
b'\t```sh\n\tsystemctl reboot\n\t```'
아마도 각 줄의 시작 부분에 있는 탭 정렬(tab stop)이 문제를 일으키는 것 같습니다 - 클립보드 내용을 파싱할 때 첫 번째 열이 항상 비어 있으면 리스트로 취급하지 않는 방식으로 해결할 수 있을 것입니다.
이것은 다소 병적인(pathological) 상황인 것 같습니다 - 이것이 발생하는 자연스러운 상황이 있을까요? 일반적으로 게시글에는 탭 정렬 문자가 없습니다.
컴퓨터의 관점에서는 빈 첫 번째 열을 가진 탭으로 구분된 테이블과 정확히 같은 모습으로 보입니다.

