summaryrefslogtreecommitdiff
path: root/regress/usr.bin/mandoc/mdoc
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2010-12-04 13:08:11 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2010-12-04 13:08:11 +0000
commitfedbd0c07f4bf3db3126e1f080b73b665fa8c84c (patch)
tree9af17d57c5f45b78fcd7b01f0368107095ac28e7 /regress/usr.bin/mandoc/mdoc
parent6f55cc74313dde69547b7081f01e2bfe883ac520 (diff)
Now that we don't have groff in base any longer, check in the desired output,
such that the regression suite does not depend on ports.
Diffstat (limited to 'regress/usr.bin/mandoc/mdoc')
-rw-r--r--regress/usr.bin/mandoc/mdoc/Ar/punct.out_ascii9
-rw-r--r--regress/usr.bin/mandoc/mdoc/Bd/blank.out_ascii20
-rw-r--r--regress/usr.bin/mandoc/mdoc/Bd/offset-empty.out_ascii10
-rw-r--r--regress/usr.bin/mandoc/mdoc/Bl/column.out_ascii36
-rw-r--r--regress/usr.bin/mandoc/mdoc/Bl/diag.out_ascii30
-rw-r--r--regress/usr.bin/mandoc/mdoc/Bl/extend.out_ascii17
-rw-r--r--regress/usr.bin/mandoc/mdoc/Bl/hang.out_ascii38
-rw-r--r--regress/usr.bin/mandoc/mdoc/Bl/inset.out_ascii30
-rw-r--r--regress/usr.bin/mandoc/mdoc/Bl/multitag.out_ascii41
-rw-r--r--regress/usr.bin/mandoc/mdoc/Bl/multitype.out_ascii8
-rw-r--r--regress/usr.bin/mandoc/mdoc/Bl/nested.out_ascii24
-rw-r--r--regress/usr.bin/mandoc/mdoc/Bl/tag.out_ascii35
-rw-r--r--regress/usr.bin/mandoc/mdoc/Fl/multiarg.out_ascii10
-rw-r--r--regress/usr.bin/mandoc/mdoc/Fl/noarg.out_ascii12
-rw-r--r--regress/usr.bin/mandoc/mdoc/Fl/punct.out_ascii10
-rw-r--r--regress/usr.bin/mandoc/mdoc/Fo/section.out_ascii58
-rw-r--r--regress/usr.bin/mandoc/mdoc/In/break.out_ascii20
-rw-r--r--regress/usr.bin/mandoc/mdoc/Li/punct.out_ascii18
-rw-r--r--regress/usr.bin/mandoc/mdoc/Op/punct.out_ascii9
-rw-r--r--regress/usr.bin/mandoc/mdoc/Rs/break.out_ascii13
-rw-r--r--regress/usr.bin/mandoc/mdoc/Sm/scope.out_ascii16
-rw-r--r--regress/usr.bin/mandoc/mdoc/Xr/args.out_ascii16
-rw-r--r--regress/usr.bin/mandoc/mdoc/blank/comment.out_ascii10
-rw-r--r--regress/usr.bin/mandoc/mdoc/blank/line.out_ascii13
24 files changed, 503 insertions, 0 deletions
diff --git a/regress/usr.bin/mandoc/mdoc/Ar/punct.out_ascii b/regress/usr.bin/mandoc/mdoc/Ar/punct.out_ascii
new file mode 100644
index 00000000000..6e79af5bbf5
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/Ar/punct.out_ascii
@@ -0,0 +1,9 @@
+AR-PUNCT(1) OpenBSD Reference Manual AR-PUNCT(1)
+
+NNAAMMEE
+ AArr--ppuunncctt - punctuation handling by the Ar macro
+
+DDEESSCCRRIIPPTTIIOONN
+ closing punctuation _a) only one _f_i_l_e _._._.) only more than one _f_i_l_e _._._.))
+ middle _a) _z start _f_i_l_e _._._.) _z
+
diff --git a/regress/usr.bin/mandoc/mdoc/Bd/blank.out_ascii b/regress/usr.bin/mandoc/mdoc/Bd/blank.out_ascii
new file mode 100644
index 00000000000..cf2827f10a5
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/Bd/blank.out_ascii
@@ -0,0 +1,20 @@
+BD-BLANK(1) OpenBSD Reference Manual BD-BLANK(1)
+
+NNAAMMEE
+ BBdd--bbllaannkk - handling of blank lines in literal displays
+
+DDEESSCCRRIIPPTTIIOONN
+ completely blank line:
+
+ line containing a blank character:
+
+ line containing two blank characters:
+
+ line starting with a blank character:
+ x
+ line starting with two blank characters:
+ x
+ finally, a trailing blank line:
+
+ end of test document
+
diff --git a/regress/usr.bin/mandoc/mdoc/Bd/offset-empty.out_ascii b/regress/usr.bin/mandoc/mdoc/Bd/offset-empty.out_ascii
new file mode 100644
index 00000000000..e69611b507f
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/Bd/offset-empty.out_ascii
@@ -0,0 +1,10 @@
+BD-OFFSET-EMPTY(1) OpenBSD Reference Manual BD-OFFSET-EMPTY(1)
+
+NNAAMMEE
+ BBdd--ooffffsseett--eemmppttyy - no argument specified to Bd offset
+
+DDEESSCCRRIIPPTTIIOONN
+ Bd literal offset empty
+
+ Bd literal offset 4n
+
diff --git a/regress/usr.bin/mandoc/mdoc/Bl/column.out_ascii b/regress/usr.bin/mandoc/mdoc/Bl/column.out_ascii
new file mode 100644
index 00000000000..1ab7a166b13
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/Bl/column.out_ascii
@@ -0,0 +1,36 @@
+BL-COLUMN(1) OpenBSD Reference Manual BL-COLUMN(1)
+
+NNAAMMEE
+ BBll--ccoolluummnn - lists with multiple columns
+
+DDEESSCCRRIIPPTTIIOONN
+ a
+
+ a b
+
+ a b cc
+
+ a b cc d
+
+ a b cc d e
+
+ 5 + 35 + 4 + 34 = 78:
+
+ x35xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx x34xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
+ a b
+
+ 5 + (22+4)*2 + 21 = 78:
+
+ x22xxxxxxxxxxxxxxxxxxx x22xxxxxxxxxxxxxxxxxxx x21xxxxxxxxxxxxxxxxxx
+ a b c
+
+ 5 + 16 + (4+15)*3 = 78:
+
+ x16xxxxxxxxxxxxx x15xxxxxxxxxxxx x15xxxxxxxxxxxx x15xxxxxxxxxxxx
+ a b c d
+
+ 5 + 13 + (3+12)*4 = 78:
+
+ x13xxxxxxxxxx x12xxxxxxxxx x12xxxxxxxxx x12xxxxxxxxx x12xxxxxxxxx
+ a b c d e
+
diff --git a/regress/usr.bin/mandoc/mdoc/Bl/diag.out_ascii b/regress/usr.bin/mandoc/mdoc/Bl/diag.out_ascii
new file mode 100644
index 00000000000..b8bd461b4e6
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/Bl/diag.out_ascii
@@ -0,0 +1,30 @@
+BL-DIAG(1) OpenBSD Reference Manual BL-DIAG(1)
+
+NNAAMMEE
+ BBll--ddiiaagg - section 4 diagnostic lists
+
+DDEESSCCRRIIPPTTIIOONN
+ ttaagg x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x
+ x x x x x x
+
+ ffoouurr x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x
+ x x x x x x
+
+ qquuiinntt x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x
+ x x x x x x x
+
+ iinnddeenntt x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x
+ x x x x x x x
+
+ sseeppttiimmee x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x
+ x x x x x x x x
+
+ aacchhttaacchhtt x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x
+ x x x x x x x x
+
+ nneeuunn__nneeuunn x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x
+ x x x x x x x x x
+
+ zzeehhnn____zzeehhnn x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x
+ x x x x x x x x x
+
diff --git a/regress/usr.bin/mandoc/mdoc/Bl/extend.out_ascii b/regress/usr.bin/mandoc/mdoc/Bl/extend.out_ascii
new file mode 100644
index 00000000000..9451848a409
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/Bl/extend.out_ascii
@@ -0,0 +1,17 @@
+BL-EXTEND(1) OpenBSD Reference Manual BL-EXTEND(1)
+
+NNAAMMEE
+ BBll--eexxtteenndd - extending block headers
+
+DDEESSCCRRIIPPTTIIOONN
+ <plain quoted text>
+
+ normal tag
+ normal text
+
+ <extended tag>
+ extended text
+
+ prefix <prefixed tag>
+ prefixed text
+
diff --git a/regress/usr.bin/mandoc/mdoc/Bl/hang.out_ascii b/regress/usr.bin/mandoc/mdoc/Bl/hang.out_ascii
new file mode 100644
index 00000000000..de575f5646d
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/Bl/hang.out_ascii
@@ -0,0 +1,38 @@
+BL-HANG(1) OpenBSD Reference Manual BL-HANG(1)
+
+NNAAMMEE
+ BBll--hhaanngg - hanged lists
+
+DDEESSCCRRIIPPTTIIOONN
+ tag x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x
+ x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x
+ x x x x x x x x x x x x x x
+
+ four x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x
+ x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x
+ x x x x x x x x x x x x x x
+
+ quint x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x
+ x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x
+ x x x x x x x x x x x x x
+
+ indent x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x
+ x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x
+ x x x x x x x x x x x x x x
+
+ septime x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x
+ x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x
+ x x x x x x x x x x x x x x
+
+ achtacht x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x
+ x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x
+ x x x x x x x x x x x x x x x
+
+ neun_neun x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x
+ x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x
+ x x x x x x x x x x x x x x x
+
+ zehn__zehn x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x
+ x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x
+ x x x x x x x x x x x x x x x x
+
diff --git a/regress/usr.bin/mandoc/mdoc/Bl/inset.out_ascii b/regress/usr.bin/mandoc/mdoc/Bl/inset.out_ascii
new file mode 100644
index 00000000000..4ecb7700486
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/Bl/inset.out_ascii
@@ -0,0 +1,30 @@
+BL-INSET(1) OpenBSD Reference Manual BL-INSET(1)
+
+NNAAMMEE
+ BBll--iinnsseett - inset list labels
+
+DDEESSCCRRIIPPTTIIOONN
+ tag x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x
+ x x x x x
+
+ four x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x
+ x x x x x x
+
+ quint x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x
+ x x x x x x
+
+ indent x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x
+ x x x x x x x
+
+ septime x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x
+ x x x x x x x
+
+ achtacht x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x
+ x x x x x x x x
+
+ neun_neun x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x
+ x x x x x x x x
+
+ zehn__zehn x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x
+ x x x x x x x x x
+
diff --git a/regress/usr.bin/mandoc/mdoc/Bl/multitag.out_ascii b/regress/usr.bin/mandoc/mdoc/Bl/multitag.out_ascii
new file mode 100644
index 00000000000..4ca7b35c1d8
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/Bl/multitag.out_ascii
@@ -0,0 +1,41 @@
+BL-MULTITAG(1) OpenBSD Reference Manual BL-MULTITAG(1)
+
+NNAAMMEE
+ BBll--mmuullttiittaagg - lists with multiple successive tags
+
+DDEESSCCRRIIPPTTIIOONN
+ inset:
+
+ first
+
+ second
+
+ third some text
+
+ fourth
+
+ fifth more text
+ tag:
+
+ first
+
+ second
+
+ third some text
+
+ fourth
+
+ fifth more text
+ inset compact:
+ first
+ second
+ third some text
+ fourth
+ fifth more text
+ tag compact:
+ first
+ second
+ third some text
+ fourth
+ fifth more text
+
diff --git a/regress/usr.bin/mandoc/mdoc/Bl/multitype.out_ascii b/regress/usr.bin/mandoc/mdoc/Bl/multitype.out_ascii
new file mode 100644
index 00000000000..ea790b36530
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/Bl/multitype.out_ascii
@@ -0,0 +1,8 @@
+BL-MULTITYPE(1) OpenBSD Reference Manual BL-MULTITYPE(1)
+
+NNAAMMEE
+ BBll--mmuullttiittyyppee - list with multiple types
+
+DDEESSCCRRIIPPTTIIOONN
+ -- Some text.
+
diff --git a/regress/usr.bin/mandoc/mdoc/Bl/nested.out_ascii b/regress/usr.bin/mandoc/mdoc/Bl/nested.out_ascii
new file mode 100644
index 00000000000..ba3047828ac
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/Bl/nested.out_ascii
@@ -0,0 +1,24 @@
+BL-NESTED(1) OpenBSD Reference Manual BL-NESTED(1)
+
+NNAAMMEE
+ BBll--nneesstteedd - nested lists
+
+DDEESSCCRRIIPPTTIIOONN
+ inset:
+
+ outer list
+
+ inner list
+ inset compact:
+ outer list
+ inner list
+ dash:
+
+ -- outer list
+
+ -- inner list
+ dash compact:
+ -- outer list
+ -- inner list
+ final text
+
diff --git a/regress/usr.bin/mandoc/mdoc/Bl/tag.out_ascii b/regress/usr.bin/mandoc/mdoc/Bl/tag.out_ascii
new file mode 100644
index 00000000000..37adc2efcb1
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/Bl/tag.out_ascii
@@ -0,0 +1,35 @@
+BL-TAG(1) OpenBSD Reference Manual BL-TAG(1)
+
+NNAAMMEE
+ BBll--ttaagg - tagged lists
+
+DDEESSCCRRIIPPTTIIOONN
+ tag x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x
+ x x x x x x x
+
+ four x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x
+ x x x x x x x
+
+ quint x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x
+ x x x x x x x
+
+ indent
+ x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x
+ x x x x x x x
+
+ septime
+ x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x
+ x x x x x x x
+
+ achtacht
+ x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x
+ x x x x x x x
+
+ neun neun
+ x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x
+ x x x x x x x
+
+ zehn_ zehn
+ x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x x
+ x x x x x x x
+
diff --git a/regress/usr.bin/mandoc/mdoc/Fl/multiarg.out_ascii b/regress/usr.bin/mandoc/mdoc/Fl/multiarg.out_ascii
new file mode 100644
index 00000000000..37bd9588249
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/Fl/multiarg.out_ascii
@@ -0,0 +1,10 @@
+FL-MULTIARG(1) OpenBSD Reference Manual FL-MULTIARG(1)
+
+NNAAMMEE
+ FFll--mmuullttiiaarrgg - multiple arguments to a Fl macro
+
+DDEESSCCRRIIPPTTIIOONN
+ Each group of flags in --aa --bb --cc --ddeeff gets its own dash.
+
+ Punctuation characters like in [--aa | --bb] get no dash.
+
diff --git a/regress/usr.bin/mandoc/mdoc/Fl/noarg.out_ascii b/regress/usr.bin/mandoc/mdoc/Fl/noarg.out_ascii
new file mode 100644
index 00000000000..5134cf38c90
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/Fl/noarg.out_ascii
@@ -0,0 +1,12 @@
+FL-NOARG(1) OpenBSD Reference Manual FL-NOARG(1)
+
+NNAAMMEE
+ FFll--nnooaarrgg - Fl macro without arguments
+
+DDEESSCCRRIIPPTTIIOONN
+ Without an argument, it yields -- a dash.
+
+ This is true even before punctuation --.
+
+ Following macros --[flag] follow without white space.
+
diff --git a/regress/usr.bin/mandoc/mdoc/Fl/punct.out_ascii b/regress/usr.bin/mandoc/mdoc/Fl/punct.out_ascii
new file mode 100644
index 00000000000..ecaafa90269
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/Fl/punct.out_ascii
@@ -0,0 +1,10 @@
+FL-PUNCT(1) OpenBSD Reference Manual FL-PUNCT(1)
+
+NNAAMMEE
+ FFll--ppuunncctt - punctuation handling by the Fl macro
+
+DDEESSCCRRIIPPTTIIOONN
+ closing punctuation --aa) only one --) only more than one --)) middle --aa) --zz
+ dot --. --zz comma --, --zz semicolon --; --zz colon --: --zz quest --? --zz excl --! --zz
+ paren --) --zz bracket --] --zz bar | --mm op paren (--aa op bracket [--aa
+
diff --git a/regress/usr.bin/mandoc/mdoc/Fo/section.out_ascii b/regress/usr.bin/mandoc/mdoc/Fo/section.out_ascii
new file mode 100644
index 00000000000..6173023c698
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/Fo/section.out_ascii
@@ -0,0 +1,58 @@
+FN-SECTION(3) OpenBSD Programmer's Manual FN-SECTION(3)
+
+NNAAMMEE
+ FFnn--sseeccttiioonn - special handling of Fn in various sections
+
+SSYYNNOOPPSSIISS
+ _i_n_t
+ aabbss(_i_n_t _j);
+
+ _d_o_u_b_l_e
+ ssiinn(_d_o_u_b_l_e _x);
+
+DDEESSCCRRIIPPTTIIOONN
+ _i_n_t aabbss(_i_n_t _j) _d_o_u_b_l_e ssiinn(_d_o_u_b_l_e _x)
+
+RREETTUURRNN VVAALLUUEESS
+ _i_n_t aabbss(_i_n_t _j) _d_o_u_b_l_e ssiinn(_d_o_u_b_l_e _x)
+
+EENNVVIIRROONNMMEENNTT
+ _i_n_t aabbss(_i_n_t _j) _d_o_u_b_l_e ssiinn(_d_o_u_b_l_e _x)
+
+FFIILLEESS
+ _i_n_t aabbss(_i_n_t _j) _d_o_u_b_l_e ssiinn(_d_o_u_b_l_e _x)
+
+EEXXAAMMPPLLEESS
+ _i_n_t aabbss(_i_n_t _j) _d_o_u_b_l_e ssiinn(_d_o_u_b_l_e _x)
+
+DDIIAAGGNNOOSSTTIICCSS
+ _i_n_t aabbss(_i_n_t _j) _d_o_u_b_l_e ssiinn(_d_o_u_b_l_e _x)
+
+EERRRROORRSS
+ _i_n_t aabbss(_i_n_t _j) _d_o_u_b_l_e ssiinn(_d_o_u_b_l_e _x)
+
+SSEEEE AALLSSOO
+ _i_n_t aabbss(_i_n_t _j) _d_o_u_b_l_e ssiinn(_d_o_u_b_l_e _x)
+
+SSTTAANNDDAARRDDSS
+ _i_n_t aabbss(_i_n_t _j) _d_o_u_b_l_e ssiinn(_d_o_u_b_l_e _x)
+
+HHIISSTTOORRYY
+ _i_n_t aabbss(_i_n_t _j) _d_o_u_b_l_e ssiinn(_d_o_u_b_l_e _x)
+
+AAUUTTHHOORRSS
+ _i_n_t aabbss(_i_n_t _j) _d_o_u_b_l_e ssiinn(_d_o_u_b_l_e _x)
+
+CCAAVVEEAATTSS
+ _i_n_t aabbss(_i_n_t _j) _d_o_u_b_l_e ssiinn(_d_o_u_b_l_e _x)
+
+BBUUGGSS
+ _i_n_t aabbss(_i_n_t _j) _d_o_u_b_l_e ssiinn(_d_o_u_b_l_e _x)
+
+CCUUSSTTOOMM
+ _i_n_t
+ aabbss(_i_n_t _j);
+
+ _d_o_u_b_l_e
+ ssiinn(_d_o_u_b_l_e _x);
+
diff --git a/regress/usr.bin/mandoc/mdoc/In/break.out_ascii b/regress/usr.bin/mandoc/mdoc/In/break.out_ascii
new file mode 100644
index 00000000000..31c70c57800
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/In/break.out_ascii
@@ -0,0 +1,20 @@
+IN-BREAK(2) OpenBSD Programmer's Manual IN-BREAK(2)
+
+NNAAMMEE
+ IInn--bbrreeaakk - line break before header include file
+
+SSYYNNOOPPSSIISS
+ ##iinncclluuddee <<ffccnnttll..hh>>
+
+ _i_n_t
+ ooppeenn(_c_o_n_s_t _c_h_a_r _*_p_a_t_h, _i_n_t _f_l_a_g_s, _m_o_d_e___t _m_o_d_e);
+
+ ##iinncclluuddee <<ssyyss//ttyyppeess..hh>>
+ ##iinncclluuddee <<uunniissttdd..hh>>
+
+ _i_n_t
+ dduupp(_i_n_t _o_l_d_d);
+
+ _s_s_i_z_e___t
+ wwrriittee(_i_n_t _d, _c_o_n_s_t _v_o_i_d _*_b_u_f, _s_i_z_e___t _n_b_y_t_e_s);
+
diff --git a/regress/usr.bin/mandoc/mdoc/Li/punct.out_ascii b/regress/usr.bin/mandoc/mdoc/Li/punct.out_ascii
new file mode 100644
index 00000000000..defbef01fe5
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/Li/punct.out_ascii
@@ -0,0 +1,18 @@
+LI-PUNCT(1) OpenBSD Reference Manual LI-PUNCT(1)
+
+NNAAMMEE
+ LLii--ppuunncctt - punctuation following a literal macro
+
+DDEESSCCRRIIPPTTIIOONN
+ before. after LLii--ppuunncctt
+
+ before . after Nm
+
+ . after LLii--ppuunncctt
+
+ . after Nm
+
+ .
+
+ .
+
diff --git a/regress/usr.bin/mandoc/mdoc/Op/punct.out_ascii b/regress/usr.bin/mandoc/mdoc/Op/punct.out_ascii
new file mode 100644
index 00000000000..ef9b56cca8b
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/Op/punct.out_ascii
@@ -0,0 +1,9 @@
+OP-PUNCT(1) OpenBSD Reference Manual OP-PUNCT(1)
+
+NNAAMMEE
+ OOpp--ppuunncctt - punctuation handling by the Op macro
+
+DDEESSCCRRIIPPTTIIOONN
+ closing punctuation [a]. only one []. only more than one [].. middle
+ [a. z] start [. z]
+
diff --git a/regress/usr.bin/mandoc/mdoc/Rs/break.out_ascii b/regress/usr.bin/mandoc/mdoc/Rs/break.out_ascii
new file mode 100644
index 00000000000..b2f65794fda
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/Rs/break.out_ascii
@@ -0,0 +1,13 @@
+RS-BREAK(1) OpenBSD Reference Manual RS-BREAK(1)
+
+NNAAMMEE
+ RRss--bbrreeaakk - line break before reference start
+
+DDEESSCCRRIIPPTTIIOONN
+ reference on the same line: author, _j_o_u_r_n_a_l, 42.
+
+SSEEEE AALLSSOO
+ reference after a blank line:
+
+ author, _j_o_u_r_n_a_l, 42.
+
diff --git a/regress/usr.bin/mandoc/mdoc/Sm/scope.out_ascii b/regress/usr.bin/mandoc/mdoc/Sm/scope.out_ascii
new file mode 100644
index 00000000000..142687e7a66
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/Sm/scope.out_ascii
@@ -0,0 +1,16 @@
+SM-SCOPE(1) OpenBSD Reference Manual SM-SCOPE(1)
+
+NNAAMMEE
+ SSmm--ssccooppee - scope of the spacing macro
+
+DDEESSCCRRIIPPTTIIOONN
+ Using an abbreviated example from the ksh(1) manual.
+
+ Modifiers can be applied to the ${_n_a_m_e} form of parameter substitution:
+
+ ${_n_a_m_e:-_w_o_r_d}
+ If _n_a_m_e is set and not NULL, it is substituted; otherwise, _w_o_r_d
+ is substituted.
+
+ In the above modifiers, the `:' can be omitted, ...
+
diff --git a/regress/usr.bin/mandoc/mdoc/Xr/args.out_ascii b/regress/usr.bin/mandoc/mdoc/Xr/args.out_ascii
new file mode 100644
index 00000000000..3fba0dd9796
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/Xr/args.out_ascii
@@ -0,0 +1,16 @@
+XR-ARGS(1) OpenBSD Reference Manual XR-ARGS(1)
+
+NNAAMMEE
+ XXrr--aarrggss - additional arguments to cross references
+
+DDEESSCCRRIIPPTTIIOONN
+ One single echo(1) is fine.
+
+ But listen for multiple echo(1)s.
+
+ Listen for those echo(1)s really hard.
+
+ A call, an echo(1), and another echo(1).
+
+ Finally, no echo at all.
+
diff --git a/regress/usr.bin/mandoc/mdoc/blank/comment.out_ascii b/regress/usr.bin/mandoc/mdoc/blank/comment.out_ascii
new file mode 100644
index 00000000000..6b8c39adacd
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/blank/comment.out_ascii
@@ -0,0 +1,10 @@
+BLANK-COMMENT(1) OpenBSD Reference Manual BLANK-COMMENT(1)
+
+NNAAMMEE
+ bbllaannkk--ccoommmmeenntt - normal and bogus comments
+
+DDEESSCCRRIIPPTTIIOONN
+ normal comment bogus comment end of text
+
+ text text
+
diff --git a/regress/usr.bin/mandoc/mdoc/blank/line.out_ascii b/regress/usr.bin/mandoc/mdoc/blank/line.out_ascii
new file mode 100644
index 00000000000..3d3037efe4e
--- /dev/null
+++ b/regress/usr.bin/mandoc/mdoc/blank/line.out_ascii
@@ -0,0 +1,13 @@
+BLANK-LINE(1) OpenBSD Reference Manual BLANK-LINE(1)
+
+NNAAMMEE
+ bbllaannkk--lliinnee - handling of blank line
+
+DDEESSCCRRIIPPTTIIOONN
+ Let us ignore this
+
+ blank line, an these two
+
+
+ as well.
+