StringIndentation extension
Indentation and layout control for multi-line strings.
- on
Methods
-
hangingIndent(
String indentation) → String -
Available on String, provided by the StringIndentation extension
Addsindentationto all lines except the first (hanging indent). -
indent(
String indentation) → String -
Available on String, provided by the StringIndentation extension
Addsindentationto the beginning of every line in the string. -
removeHangingIndent(
String indentation) → String -
Available on String, provided by the StringIndentation extension
Removesindentationfrom all lines except the first. -
removeIndent(
String indentation) → String -
Available on String, provided by the StringIndentation extension
Removesindentationfrom the start of every line if present. -
removeReverseHangingIndent(
String indentation) → String -
Available on String, provided by the StringIndentation extension
Removesindentationfrom only the first line if present. -
reverseHangingIndent(
String indentation) → String -
Available on String, provided by the StringIndentation extension
Addsindentationto only the first line (reverse hanging indent).