Skip to content

[221_10] 改进列表的结构化插入和结构化删除#3296

Merged
da-liii merged 5 commits intomainfrom
da/221_10/delete_protect
May 8, 2026
Merged

[221_10] 改进列表的结构化插入和结构化删除#3296
da-liii merged 5 commits intomainfrom
da/221_10/delete_protect

Conversation

@da-liii
Copy link
Copy Markdown
Contributor

@da-liii da-liii commented May 8, 2026

No description provided.

da-liii and others added 5 commits May 8, 2026 15:09
当整个文档只有一个有序列表时,结构化向上/向下删除会把列表删空,
进而删除列表节点本身,导致父 document 变为空,排版时触发
"Throwing empty composite box" 错误。

修复:删除列表节点后,若父 document 为空,则插入空字符串 "" 占位。

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
描述列表结构化插入后,光标应进入 item* 子节点 "" 的开始位置
(tree-go-to new-item 0 :start),而非 document 层面的 :start。

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@da-liii da-liii merged commit d77a6e0 into main May 8, 2026
2 checks passed
@da-liii da-liii deleted the da/221_10/delete_protect branch May 8, 2026 08:24
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.

2 participants