[Top][All Lists]
[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
- [Groff] Allowing user also to check if a line starts with horizontal space, Dorai Sitaram, 2009/02/03
- Re: [Groff] Allowing user also to check if a line starts with horizontal space, Werner LEMBERG, 2009/02/03
- Re: [Groff] Allowing user also to check if a line starts with horizontal space, Dorai Sitaram, 2009/02/04
- Re: [Groff] Allowing user also to check if a line starts with horizontal space,
Werner LEMBERG <=
- Re: [Groff] Allowing user also to check if a line starts with horizontal space, Dorai Sitaram, 2009/02/10
- Re: [Groff] Allowing user also to check if a line starts with horizontal space, Werner LEMBERG, 2009/02/10
- Re: [Groff] Allowing user also to check if a line starts with horizontal space, Werner LEMBERG, 2009/02/14
- Re: [Groff] Allowing user also to check if a line starts with horizontal space, Dorai Sitaram, 2009/02/15
- Re: [Groff] Allowing user also to check if a line starts with horizontal space, Werner LEMBERG, 2009/02/15
- Re: [Groff] Allowing user also to check if a line starts with ho, Ted Harding, 2009/02/15