groff
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Count number of spaces at beginning of line?


From: Ralph Corderoy
Subject: Re: Count number of spaces at beginning of line?
Date: Sun, 30 Apr 2023 09:03:19 +0100

Hi Oliver,

Dave wrote:
> > Is there any possibility to count leading spaces in groff?
>
> See the documentation for the \n[lsn] register.

Which can be seen with

    info groff 'Leading Spaces Traps' | cat

I'd been playing with an input trap, ‘.it’, so you might be interested
to learn about those too, but Dave's suggestion is more relevant for
what you asked.

-- 
Cheers, Ralph.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]