Skip to content

The trim modifier should remove whitespace from isspace(3) not just the space character #102

@jlduran

Description

@jlduran

The function xo_trim_ws should remove white space according to isspace(3), not just space characters (the fix is not straightforward, so reporting it as a bug).

For example, if passing tab characters (the white space is just a literal tab):

$ xo "{t:description}" "	squash this!	" --libxo json
"description":"	squash this!	"

Related to #101.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions