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: Wed, 11 Feb 2009 00:18:37 +0100 (CET)

> It should be enough to just check that the line (otherwise not
> empty) begins with at least one space.  Reading ahead to count the
> number of spaces is not needed, and may indeed be bad, because the
> spaces need to print as usual.

Groff does this already while processing leading spaces in a line.  It
is necessary to do so for finding a trailing newline since in this
situation the spaces are completely ignored.


    Werner




reply via email to

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