Skip to content

fix(converter): li_itself join에서 XHTML에 없는 공백 삽입을 제거합니다#987

Merged
jk-kim0 merged 2 commits intomainfrom
jk/fix-reverse-sync-li-p-leading-space
Apr 7, 2026
Merged

fix(converter): li_itself join에서 XHTML에 없는 공백 삽입을 제거합니다#987
jk-kim0 merged 2 commits intomainfrom
jk/fix-reverse-sync-li-p-leading-space

Conversation

@jk-kim0
Copy link
Copy Markdown
Contributor

@jk-kim0 jk-kim0 commented Apr 6, 2026

Summary

  • convert_li()' '.join(li_itself)''.join(li_itself)로 변경합니다
  • <p>의 SingleLineParser 출력에 이미 XHTML 원문의 공백이 보존되어 있으므로, join에서 추가 공백을 삽입하지 않아야 합니다
  • FC 공백 보존 원칙 지침 문서(docs/fc-whitespace-preservation.md)를 추가합니다

원인

' '.join()li_itself 항목 사이에 공백을 삽입하는데, 이 공백은 XHTML 원문에 존재하지 않음

수정

# 변경 전
itself = ' '.join(li_itself)
# 변경 후
itself = ''.join(li_itself)

Test plan

  • make test-convert — 21 passed
  • make test-skeleton — 18 passed
  • make test-reverse-sync — 43 passed
  • make test-byte-verify — 21 passed
  • make test-render — 21 passed
  • pytest — 964 passed

🤖 Generated with Claude Code

@vercel
Copy link
Copy Markdown

vercel bot commented Apr 6, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
querypie-docs Ready Ready Preview, Comment Apr 7, 2026 2:31am

Request Review

jk-kim0 and others added 2 commits April 7, 2026 11:25
convert_li()의 ' '.join(li_itself)를 ''.join(li_itself)로 변경합니다.
각 <p>의 SingleLineParser 출력에 이미 XHTML 원문의 공백이 보존되어
있으므로, join에서 추가 공백을 넣지 않아야 합니다.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
XHTML 원본의 공백을 그대로 MDX로 옮기는 원칙과
구체적 사례(convert_li join)를 정리합니다.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@jk-kim0 jk-kim0 force-pushed the jk/fix-reverse-sync-li-p-leading-space branch from 5d87bc5 to 8a8eff3 Compare April 7, 2026 02:26
@jk-kim0 jk-kim0 changed the title fix(converter): 리스트 항목 내 <br/> 인접 공백을 제거합니다 fix(converter): li_itself join에서 XHTML에 없는 공백 삽입을 제거합니다 Apr 7, 2026
@jk-kim0 jk-kim0 self-assigned this Apr 7, 2026
@jk-kim0 jk-kim0 merged commit 650482a into main Apr 7, 2026
7 checks passed
@jk-kim0 jk-kim0 deleted the jk/fix-reverse-sync-li-p-leading-space branch April 7, 2026 02:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant