Skip to content

feat: dedent - #1908

Open
hazrid93 wants to merge 1 commit into
toss:mainfrom
hazrid93:hazrid93/34_842
Open

feat: dedent#1908
hazrid93 wants to merge 1 commit into
toss:mainfrom
hazrid93:hazrid93/34_842

Conversation

@hazrid93

Copy link
Copy Markdown

Closes #842.

Add dedent(str) that strips a leading newline + trailing whitespace only line, computes the minimum common leading whitespace length across non blank lines, and removes that indent from each line (leaving blank lines untouched). CRLF is normalised to LF.

@vercel

vercel Bot commented Jul 20, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
es-toolkit Ready Ready Preview, Comment Jul 20, 2026 11:12am

Request Review

Closes toss#842.

Add dedent(str) that strips a leading newline + trailing whitespace only line, computes the minimum common leading whitespace length across non blank lines, and removes that indent from each line (leaving blank lines untouched). CRLF is normalised to LF.
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.

feature: dedent

1 participant