API Reference
Namespaces
Modules
Classes
Events
Global
Externals

Namespace: whitespace

whitespace

Whitespace and line-ending transformations.

Members


collapseSpaces

Collapse spaces and tabs, while preserving newline boundaries.

Since:
  • 10.5.0


collapseWhitespace

Collapse all whitespace (including newlines) into single spaces.

Since:
  • 10.5.0


normalizeNewlines

Replace all newline variants with \n.

Since:
  • 10.5.0


trimLines

Trim leading and trailing whitespace from every line.

Since:
  • 10.5.0


unwrapLines

Merge multi-line commands by removing backslash-newline continuations.

Since:
  • 10.5.0