summaryrefslogtreecommitdiffstats
path: root/regress/roff/mc/args.out_ascii
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2022-04-28 16:21:09 +0000
committerIngo Schwarze <schwarze@openbsd.org>2022-04-28 16:21:09 +0000
commitc0667bb0674363961e21650dd6fa239e4696d039 (patch)
treec2a9b64e56f4ac90b6b29932d5b5df55c2c8d762 /regress/roff/mc/args.out_ascii
parentae95bf4c9468b176445f464bec4255eb69978cfa (diff)
downloadmandoc-c0667bb0674363961e21650dd6fa239e4696d039.tar.gz
The syntax of the roff(7) .mc request is quite special
and the roff_onearg() parsing function is too generic, so provide a dedicated parsing function instead. This fixes an assertion failure when an \o escape sequence is passed as the argument; the bug was found by tb@ using afl(1). It also makes mandoc output more similar to groff in various cases.
Diffstat (limited to 'regress/roff/mc/args.out_ascii')
-rw-r--r--regress/roff/mc/args.out_ascii19
1 files changed, 19 insertions, 0 deletions
diff --git a/regress/roff/mc/args.out_ascii b/regress/roff/mc/args.out_ascii
new file mode 100644
index 00000000..d1a56be6
--- /dev/null
+++ b/regress/roff/mc/args.out_ascii
@@ -0,0 +1,19 @@
+MC-ARGS(1) General Commands Manual MC-ARGS(1)
+
+NNAAMMEE
+ mc-args - arguments to the .mc request
+
+DDEESSCCRRIIPPTTIIOONN
+ initial text
+ ASCII character in the margin |
+ invalid escape sequence
+ unsupported escape sequence
+ ignored escape sequence
+ special character in the margin |
+ special character represented as string <integral>
+ font escape in the margin
+ numbered character in the margin |
+ Unicode character in the margin |
+ overstriking in the margin
+
+OpenBSD April 28, 2022 MC-ARGS(1)