Skip to content

[0119] 插入表格时默认开启所有单元格的 cell-hyphen#3349

Merged
da-liii merged 3 commits into
mainfrom
da/200_27/0119_default_cell_hyphen
May 14, 2026
Merged

[0119] 插入表格时默认开启所有单元格的 cell-hyphen#3349
da-liii merged 3 commits into
mainfrom
da/200_27/0119_default_cell_hyphen

Conversation

@da-liii
Copy link
Copy Markdown
Contributor

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

What

插入表格时,默认对所有单元格开启 cell-hyphen

Why

当前默认 cell-hyphen 关闭,导致单元格内容无法换行,会超出页面右侧边界。

How

src/Edit/Modify/edit_table.cppmake_tablemake_subtable 中,插入表格后调用 table_set_format 设置全部单元格的 cell-hyphen"t"

🤖 Generated with Claude Code

da-liii and others added 3 commits May 14, 2026 12:01
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
- 提取 default_table_tree 辅助函数,在构造 TFORMAT 时直接包含 cell-hyphen 为 t
- 新增 tests/Edit/Modify/edit_table_test.cpp 验证默认表格结构
- make_table 和 make_subtable 统一使用 default_table_tree

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Copy link
Copy Markdown
Contributor

@JackYansongLi JackYansongLi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@da-liii da-liii merged commit ecdbc7a into main May 14, 2026
5 checks passed
@da-liii da-liii deleted the da/200_27/0119_default_cell_hyphen branch May 14, 2026 05:44
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