Skip to content

DXF writer: keep the multileader word break before AC1027 (#904) - #905

Merged
HakanSeven12 merged 2 commits into
hakanaktt:mainfrom
acsgh:fix/dxf-mleader-word-break
Dec 3, 2026
Merged

HakanSeven12 merged 2 commits into
hakanaktt:mainfrom
acsgh:fix/dxf-mleader-word-break

Conversation

@acsgh

@acsgh acsgh commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

Closes #904

Commits:

  1. 006be1ab Red tests (tests/dxf_multileader_word_break.rs): a multileader with word_break off/on written as DXF in AC1015, AC1018, AC1021, AC1024, AC1027 and AC1032 and read back, plus a check that the MULTILEADER carries group 295 in every version. On main, word_break_off_survives_a_dxf_round_trip_in_every_version and the_dxf_writer_writes_group_295_in_every_version fail at AC1015 (the value comes back true; no 295 is written); the "on" case passes because true is the reader's default.
  2. d6bf214e Fix: section_writer.rs writes 295 in every version, in both places that write the MText context. The three tests pass.

Red commit confirmed in CI (run 47180253932: the two tests above fail on Ubuntu, macOS and Windows; nothing else fails).

Ran on the last commit:

  • cargo test: 3722 passed, 0 failed

  • Closes #N is above

  • Bug: red-tests commit first, fix commit second, same PR

  • cargo test passes on the last commit (say what you ran)

  • No formatting-only or unrelated changes

🤖 Generated with Claude Code

acsgh and others added 2 commits December 3, 2026 19:41
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
AutoCAD writes group 295 in the MText context from R2000 on; the writer
only wrote it for AC1027+, so older files read back the default (true).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@acsgh
acsgh marked this pull request as ready for review December 3, 2026 20:27
@HakanSeven12
HakanSeven12 merged commit 305509c into hakanaktt:main Dec 3, 2026
6 checks passed
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.

DXF writer omits the multileader word break (295) before AC1027

2 participants