- change the
formatlist()tformat switch to trim all whitespace (tabs and spaces), or
- add a new switch which would do so?
item1 is shown as I would prefer to indent, but item2 is as I have to do so currently.formatlist() t format switch to trim all whitespace (tabs and spaces), oritem1 is shown as I would prefer to indent, but item2 is as I have to do so currently.Code: Select all
$foo = regexreplace(
<<<'
item1
item2
'
, "^\s+|^(\r?\n|$)"
);
text $foo;