Skip to content
Prev 164196 / 398506 Next

Replacing tabs with appropriate number of spaces

That's a clever use of gsubfn.  Here is a very minor simplification using
the same code but representing it in formula notation and sprintf:

gsubfn('([^\t]+)\t', ~ sprintf("%s%*s", x, 8-nchar(x)%%8, " "), tmp)
On Tue, Dec 9, 2008 at 12:51 PM, Greg Snow <Greg.Snow at imail.org> wrote: