Repository navigation
Conversation
Hancom lists have levels 1 to 10, and Hancom cannot save a document whose list paragraph uses an eleventh: it stops while laying it out. apply_list_format refused only levels below 1; a level that is no int from 1 to 10 is now refused with style-list-level-invalid before anything changes. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts: # CHANGELOG.md
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
바뀐 점
글머리표·번호 목록(
doc.styles.apply_list_format)이 10보다 깊은 수준을 받던 것을 고친다. 이제 1 이상 10 이하의 int가 아닌 수준은 무엇도 바꾸기 전에 거부한다.한/글의 동작
고치기 전
TypeError로 끝났다. bool 수준(True)은 1로 받았다.코드
_document/layout.py의apply_list_format이 수준을 1 이상 10 이하의 int로 검사한다. 오류 코드는 전과 같은style-list-level-invalid다.errors.py와docs/error-codes.md에서 그 코드의 설명을 고치고, 변경 로그 항목을 더한다.테스트
tests/test_list_level_range.py를 더한다.hh:headingNUMBER, level 0·9)으로 쓰이는지 본다.고치기 전에는 11, 255, 1.0, True 판이 틀렸다.
🤖 Generated with Claude Code