Skip to content

feat(WhitespaceNormalize): add Normalize Whitespace BoxSource - #485

Open
XiaoXiaoSN wants to merge 1 commit into
mainfrom
feat/boxsource-new-whitespacenormalize
Open

feat(WhitespaceNormalize): add Normalize Whitespace BoxSource#485
XiaoXiaoSN wants to merge 1 commit into
mainfrom
feat/boxsource-new-whitespacenormalize

Conversation

@XiaoXiaoSN

@XiaoXiaoSN XiaoXiaoSN commented Jun 24, 2026

Copy link
Copy Markdown
Owner

Box Source: Normalize Whitespace (Transform)

Adds the Normalize Whitespace box source to Magic Box. It is disabled by default.

Details:

  • Category (Kind): Transform

  • Tag: #

  • Default Input: `foo

    bar

::trimlines`

Options:

  • ::normalizews, ::trimlines

Description:

Trim trailing spaces per line, collapse multiple blank lines to one, and strip leading/trailing blank lines.

Usage Examples:

  • Input:
foo   


  bar  

 ::trimlines
  • Output Box (Normalize Whitespace):
foo

  bar

@XiaoXiaoSN

Copy link
Copy Markdown
Owner Author

Linting/testing failed on this branch.

Error details:

Please fix the linting and testing issues and ensure 'bun run lint' and 'bun test run' pass.

@XiaoXiaoSN

Copy link
Copy Markdown
Owner Author

This PR is ready to merge!

@XiaoXiaoSN
XiaoXiaoSN force-pushed the feat/boxsource-new-whitespacenormalize branch from ae370db to 8e32e64 Compare June 26, 2026 08:19
@XiaoXiaoSN
XiaoXiaoSN force-pushed the feat/boxsource-new-whitespacenormalize branch from 8e32e64 to 8ace63e Compare July 23, 2026 05:16
@XiaoXiaoSN

Copy link
Copy Markdown
Owner Author

add also ::trim

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant