diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2022-06-07 09:54:40 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2022-06-07 09:54:40 +0000 |
commit | a20dce04f17b9130249adc2db887746a87808270 (patch) | |
tree | 74eb1865cc815f94aec7717395e69443a7b6423b /mandoc.1 | |
parent | b88fd10e9a00e06f98d28dae5b9b96149bff33ec (diff) | |
download | mandoc-a20dce04f17b9130249adc2db887746a87808270.tar.gz |
Split the excessively generic diagnostic message "invalid escape sequence"
into the more specific messages "invalid escape argument delimiter"
and "invalid escape sequence argument".
Diffstat (limited to 'mandoc.1')
-rw-r--r-- | mandoc.1 | 17 |
1 files changed, 14 insertions, 3 deletions
@@ -1797,10 +1797,9 @@ it is hard to predict which tab stop position the tab will advance to. .Pq mdoc A new sentence starts in the middle of a text line. Start it on a new input line to help formatters produce correct spacing. -.It Sy "invalid escape sequence" +.It Sy "invalid escape sequence argument" .Pq roff -An escape sequence has an invalid opening argument delimiter -or the argument is of an invalid form. +The argument of an escape sequence is of an invalid form. Invalid escape sequences are ignored. .It Sy "undefined escape, printing literally" .Pq roff @@ -2314,6 +2313,18 @@ The escape sequence is ignored. The name given in a special character escape sequence is not known to .Nm . The escape sequence is ignored. +.It Sy "invalid escape argument delimiter" +.Pq roff +An escape sequence that expects a numerical argument +attempts to employ one of the characters +.Qq " %&()*+-./0123456789:<=>" +as an argument delimiter. +The escape sequence is ignored including the invalid opening delimiter +and the rest of the argument may appear as output text. +While various charcters can be used as argument delimiters, +using the apostrophe-quote character +.Pq Sq \(aq +is recommended for readability and robustness. .El .Ss Unsupported features .Bl -ohang |