Skip to content

Preserve project TOML line endings when writing widgets - #6

Merged
GG-O-BP merged 1 commit into
mainfrom
fix/toml-writer-crlf
Sep 3, 2026
Merged

Preserve project TOML line endings when writing widgets#6
GG-O-BP merged 1 commit into
mainfrom
fix/toml-writer-crlf

Conversation

@GG-O-BP

@GG-O-BP GG-O-BP commented Sep 3, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • mendraw#10 reported CRLF normalization by the removed Mendraw TOML writer. The mxpak successor had the same defect in a different form: it split on \n, left \r on untouched lines, and joined modified/inserted lines with bare \n, producing mixed line endings on Windows-owned gleam.toml files.
  • write_widget, remove_widget, key updates, section insertion, and section removal now detect the file line ending and split/rejoin with it consistently.
  • Tests cover CRLF preservation across key update, new-section insertion, and section removal.

Fixes glendix-labs/mendraw#10

Verification

  • gleam test — 115 passed.
  • ./scripts/verify.sh inner mxpak — passed.
  • ./scripts/check-all.sh — passed.
  • pre-push verify.sh final — passed on retry (family checks, widget build, Lustre E2E, Mendix full E2E); first attempt hit a transient Hex API rate limit.

@GG-O-BP
GG-O-BP merged commit 88362bb into main Sep 3, 2026
@GG-O-BP
GG-O-BP deleted the fix/toml-writer-crlf branch September 3, 2026 01:32
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.

[codegen] TOML 쓰기 시 CRLF가 LF로 강제 정규화됨

1 participant