Registry / utility / unindent

unindent

JSON →
library0.2.4rscratesunverified

Remove a column of leading whitespace from a string.

# Cargo.toml [dependencies] unindent = "0.2.4"
INSTALL
IMPORT
SIG · UNINDENT
U
unindent
utilityrustv0.2.4
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

unindent
use unindent::unindent;

Remove common leading whitespace from a multi-line string.

use unindent::unindent; fn main() { let s = " hello\n world"; println!("{}", unindent(s)); }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.2.4latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
9 hits · last 30 days
node
8
Amazon
1
Resources
unindent — cargo add unindent · libregistry