Skip to content

fix: correct whitespace trim algorithm#173

Merged
dsherret merged 2 commits intodprint:mainfrom
bjones1:fix-whitespace-trim
Feb 3, 2026
Merged

fix: correct whitespace trim algorithm#173
dsherret merged 2 commits intodprint:mainfrom
bjones1:fix-whitespace-trim

Conversation

@bjones1
Copy link
Contributor

@bjones1 bjones1 commented Jan 30, 2026

HTML (and therefore Markdown) define document whitespace more narrowly than Rust's whitespace, per the Mozilla Developer Network docs. This uses the narrow definition of whitespace.

@bjones1 bjones1 marked this pull request as ready for review January 30, 2026 08:17
@dsherret dsherret changed the title Fix: correct whitespace trim algorithm. fix: correct whitespace trim algorithm Feb 3, 2026
Copy link
Member

@dsherret dsherret left a comment

Choose a reason for hiding this comment

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

Thanks!

@dsherret dsherret merged commit 582eecd into dprint:main Feb 3, 2026
2 checks passed
@bjones1
Copy link
Contributor Author

bjones1 commented Feb 4, 2026

My pleasure!

@bjones1 bjones1 deleted the fix-whitespace-trim branch February 4, 2026 03:12
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