Follow-up Comment #7, bug #66512 (group groff):

Since this isn't written down anywhere, I'll note it here.

Most *roff requests take a fixed number of space-delimited arguments.  (Plan 9
troff allows tabs to delimit them as well.  No one else does.)

Generally, the handler for a GNU troff request needs to call `skip_line()` at
the end of its execution.  This eats whitespace characters, and comments, and
other detritus until the next newline (unless the newline is escaped, which
that function also handles).

Request handlers that interpret the rest of the input line as a single
argument require a different convention by dint of that fact.  They need to
call `tok.next()` instead before returning.


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?66512>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/

Attachment: signature.asc
Description: PGP signature

Reply via email to