Hi Oliver,

At 2025-05-07T20:50:22+0200, Oliver Corff via GNU roff typesetting
system discussion wrote:
> I just read the explanation of "\c" (line continuation) in groff(7).
> The manual page says: "The \c escape sequence continues an output
> line. Nothing on the input line after it is formatted."
> 
> While the wording is clear enough, may I suggest an alternative
> wording?
> 
> "The \c escape sequence continues an output line. Trailing characters
> are silently discarded and treated as comment text, equal to \".

The problem with that recasting is that it is inaccurate.

Exhibit:

$ cat /tmp/oliver.groff
\R'a 1'
.\" \R'b 2'
foo\c\R'c 3'
.pnr a b c
$ ./build/test-groff -z /tmp/oliver.groff
a       1       +0      0
c       3       +0      0

(I'm showing off new features of the `pnr` request in groff Git, but the
essential facts about the register values remain the same.)

$ cat /tmp/oliver2.groff
\R'a 1'
.\" \R'b 2'
foo\c\R'c 3'
.tm a=\na, b=\nb, c=\nc
$ ~/groff-1.22.3/bin/groff -z /tmp/oliver2.groff
a=1, b=0, c=3

In summary, "nothing is formatted" is not equivalent to "nothing is
interpreted".

Regards,
Branden

Attachment: signature.asc
Description: PGP signature

  • Humble suggestion ... Oliver Corff via GNU roff typesetting system discussion
    • Re: Humble su... G. Branden Robinson
      • Re: Humbl... Oliver Corff via GNU roff typesetting system discussion

Reply via email to