groff
[Top][All Lists]
Advanced

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

Re: [Groff] Allowing user also to check if a line starts with horizontal


From: Werner LEMBERG
Subject: Re: [Groff] Allowing user also to check if a line starts with horizontal space
Date: Tue, 10 Feb 2009 10:21:29 +0100 (CET)

> > You mean a `spaces-at-line-start' macro, similar to the
> > empty-line-macro?
>
> Yes, that would work.  Thus, the user defines a particular macro
> name to change the default effect of space-at-line-start (implicit
> .br), just like the user defines BLM to change the default effect of
> empty-line (implicit .sp).

Looking into the source I wonder what to do actually with the spaces
at the beginning of a line.  The trap macro itself doesn't receive an
argument; however, it would be possible to store the horizontal space
and/or the number of spaces in registers.  What do you think?

For backwards compatibility, a line consisting entirely of spaces
would be still considered as an empty line, subject to the blank line
macro.


    Werner




reply via email to

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