mirror of
git://git.suckless.org/sbase
synced 2024-12-23 15:34:38 +00:00
e51a2e6d2f
The one specified by mdoc is hard to read for non-native speakers from countries which read the date day-first (like Germany, Greece, North-Korea, Swamp,...). This is also consistent with how we generally specify dates at suckless.org.
46 lines
821 B
Groff
46 lines
821 B
Groff
.Dd 2015-10-08
|
|
.Dt UNEXPAND 1
|
|
.Os sbase
|
|
.Sh NAME
|
|
.Nm unexpand
|
|
.Nd unexpand spaces to tabs
|
|
.Sh SYNOPSIS
|
|
.Nm
|
|
.Op Fl a
|
|
.Op Fl t Ar tablist
|
|
.Op Ar file ...
|
|
.Sh DESCRIPTION
|
|
.Nm
|
|
converts spaces to tabs in each
|
|
.Ar file
|
|
as specified in
|
|
.Ar tablist .
|
|
If no file is given,
|
|
.Nm
|
|
reads from stdin.
|
|
.Pp
|
|
Backspace characters are preserved and decrement the column count
|
|
for tab calculations.
|
|
.Sh OPTIONS
|
|
.Bl -tag -width Ds
|
|
.It Fl a
|
|
Convert spaces to tabs everywhere, not just at the start of lines.
|
|
.It Fl t Ar tablist
|
|
Specify tab size or tabstops.
|
|
.Ar tablist
|
|
is a list of one (in the former case) or multiple (in the latter case)
|
|
strictly positive integers separated by ' ' or ','.
|
|
.Pp
|
|
The default
|
|
.Ar tablist
|
|
is "8".
|
|
.El
|
|
.Sh SEE ALSO
|
|
.Xr expand 1
|
|
.Sh STANDARDS
|
|
The
|
|
.Nm
|
|
utility is compliant with the
|
|
.St -p1003.1-2013
|
|
specification.
|