diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2018-08-21 18:15:22 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2018-08-21 18:15:22 +0000 |
commit | 50f5bf83cff66e2f7baa88e327d78c37143bed97 (patch) | |
tree | cba4ec0cdf59eb1d172ba5fcc1a668071a4469c6 /roff.7 | |
parent | 13eca495ce65af310d2aeaa717684ccbaa617070 (diff) | |
download | mandoc-50f5bf83cff66e2f7baa88e327d78c37143bed97.tar.gz |
Implement the \\$@ escape sequence (insert all macro arguments,
quoted) in addition to the already supported \\$* (similar, but
unquoted). Then use \\$@ to improve the implementation of
the .als request (macro alias).
Needed by groff_hdtbl(7).
Gosh, it feels like the manual pages of the groff package are
exercising every bloody roff(7) feature under the sun. In the
manual page source code itself, not merely in the implementation
of the used macro packages, that is.
Diffstat (limited to 'roff.7')
-rw-r--r-- | roff.7 | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -634,6 +634,8 @@ produces in the input stream, and thus in the output: \fI\^XtFree\^\fP. Each occurrence of \e\e$* is replaced with all the arguments, joined together with single space characters. +The variant \e\e$@ is similar, except that each argument is +individually quoted. .Pp Since macros and user-defined strings share a common string table, defining a macro @@ -1838,6 +1840,9 @@ Discard the rest of the physical input line and continue the logical input line on the next physical input line, joining the text on both lines together as if it were on a single input line. This is a groff extension. +.Ss \e$ Ns Ar arg +Macro argument expansion, see +.Sx de . .Ss \e% Hyphenation allowed at this point of the word; ignored by .Xr mandoc 1 . |