summaryrefslogtreecommitdiffstats
path: root/regress/mdoc/Nm
diff options
context:
space:
mode:
Diffstat (limited to 'regress/mdoc/Nm')
-rw-r--r--regress/mdoc/Nm/Makefile24
-rw-r--r--regress/mdoc/Nm/badNAME.in8
-rw-r--r--regress/mdoc/Nm/badNAME.out_ascii9
-rw-r--r--regress/mdoc/Nm/badNAME.out_lint2
-rw-r--r--regress/mdoc/Nm/badNAMEuse.in9
-rw-r--r--regress/mdoc/Nm/badNAMEuse.out_ascii10
-rw-r--r--regress/mdoc/Nm/badNAMEuse.out_lint2
-rw-r--r--regress/mdoc/Nm/break.in12
-rw-r--r--regress/mdoc/Nm/break.out_ascii12
-rw-r--r--regress/mdoc/Nm/break.out_lint1
-rw-r--r--regress/mdoc/Nm/broken.in10
-rw-r--r--regress/mdoc/Nm/broken.out_ascii11
-rw-r--r--regress/mdoc/Nm/empty.in13
-rw-r--r--regress/mdoc/Nm/empty.out_ascii13
-rw-r--r--regress/mdoc/Nm/emptyNAME.in8
-rw-r--r--regress/mdoc/Nm/emptyNAME.out_ascii9
-rw-r--r--regress/mdoc/Nm/emptyNAMEuse.in9
-rw-r--r--regress/mdoc/Nm/emptyNAMEuse.out_ascii10
-rw-r--r--regress/mdoc/Nm/font.in10
-rw-r--r--regress/mdoc/Nm/font.out_ascii9
-rw-r--r--regress/mdoc/Nm/long.in11
-rw-r--r--regress/mdoc/Nm/long.out_ascii14
-rw-r--r--regress/mdoc/Nm/par.in11
-rw-r--r--regress/mdoc/Nm/par.out_ascii11
-rw-r--r--regress/mdoc/Nm/parns.in23
-rw-r--r--regress/mdoc/Nm/parns.out_ascii17
-rw-r--r--regress/mdoc/Nm/punct.in39
-rw-r--r--regress/mdoc/Nm/punct.out_ascii12
28 files changed, 329 insertions, 0 deletions
diff --git a/regress/mdoc/Nm/Makefile b/regress/mdoc/Nm/Makefile
new file mode 100644
index 00000000..d87f43fd
--- /dev/null
+++ b/regress/mdoc/Nm/Makefile
@@ -0,0 +1,24 @@
+# $OpenBSD: Makefile,v 1.13 2017/02/06 03:44:37 schwarze Exp $
+
+REGRESS_TARGETS = badNAME badNAMEuse break broken
+REGRESS_TARGETS += empty emptyNAME emptyNAMEuse
+REGRESS_TARGETS += font long par parns punct
+
+LINT_TARGETS = badNAME badNAMEuse break
+
+# groff-1.22.3/mandoc differences:
+# - When the head of an Nm block in the SYNOPSIS is broken by an
+# explicit block end macro on the same line, formatting differs,
+# but doesn't make sense either way.
+# - Groff doesn't support the nS register.
+
+SKIP_GROFF = broken parns
+SKIP_TMAN = broken par parns
+
+# groff-1.22.3 defect:
+# When a SYNOPSIS Nm block head breaks a sub block, all the
+# remaining content in the document gets lost.
+
+SKIP_GROFF += break
+
+.include <bsd.regress.mk>
diff --git a/regress/mdoc/Nm/badNAME.in b/regress/mdoc/Nm/badNAME.in
new file mode 100644
index 00000000..a882c059
--- /dev/null
+++ b/regress/mdoc/Nm/badNAME.in
@@ -0,0 +1,8 @@
+.Dd July 12, 2012
+.Dt NM-BADNAME 1
+.Os OpenBSD
+.Sh NAME
+.Nm Bx
+.Nd text production macro on the NAME \&Nm line
+.Sh SYNOPSIS
+badNAME
diff --git a/regress/mdoc/Nm/badNAME.out_ascii b/regress/mdoc/Nm/badNAME.out_ascii
new file mode 100644
index 00000000..3c1ff360
--- /dev/null
+++ b/regress/mdoc/Nm/badNAME.out_ascii
@@ -0,0 +1,9 @@
+NM-BADNAME(1) General Commands Manual NM-BADNAME(1)
+
+NNAAMMEE
+ BSD - text production macro on the NAME Nm line
+
+SSYYNNOOPPSSIISS
+ badNAME
+
+OpenBSD July 12, 2012 OpenBSD
diff --git a/regress/mdoc/Nm/badNAME.out_lint b/regress/mdoc/Nm/badNAME.out_lint
new file mode 100644
index 00000000..8a5963d7
--- /dev/null
+++ b/regress/mdoc/Nm/badNAME.out_lint
@@ -0,0 +1,2 @@
+mandoc: badNAME.in:5:2: ERROR: missing manual name, using "": Nm
+mandoc: badNAME.in:5:5: WARNING: bad NAME section content: Bx
diff --git a/regress/mdoc/Nm/badNAMEuse.in b/regress/mdoc/Nm/badNAMEuse.in
new file mode 100644
index 00000000..0ede18d8
--- /dev/null
+++ b/regress/mdoc/Nm/badNAMEuse.in
@@ -0,0 +1,9 @@
+.Dd July 12, 2012
+.Dt NM-BADNAMEUSE 1
+.Os OpenBSD
+.Sh NAME
+.Nm Bx
+.Nd text production macro on the NAME \&Nm line, used later
+.Sh SYNOPSIS
+.Nm some_name
+.Nm
diff --git a/regress/mdoc/Nm/badNAMEuse.out_ascii b/regress/mdoc/Nm/badNAMEuse.out_ascii
new file mode 100644
index 00000000..fd3aa7a5
--- /dev/null
+++ b/regress/mdoc/Nm/badNAMEuse.out_ascii
@@ -0,0 +1,10 @@
+NM-BADNAMEUSE(1) General Commands Manual NM-BADNAMEUSE(1)
+
+NNAAMMEE
+ BSD - text production macro on the NAME Nm line, used later
+
+SSYYNNOOPPSSIISS
+ ssoommee__nnaammee
+ ssoommee__nnaammee
+
+OpenBSD July 12, 2012 OpenBSD
diff --git a/regress/mdoc/Nm/badNAMEuse.out_lint b/regress/mdoc/Nm/badNAMEuse.out_lint
new file mode 100644
index 00000000..7b1c802f
--- /dev/null
+++ b/regress/mdoc/Nm/badNAMEuse.out_lint
@@ -0,0 +1,2 @@
+mandoc: badNAMEuse.in:5:2: ERROR: missing manual name, using "": Nm
+mandoc: badNAMEuse.in:5:5: WARNING: bad NAME section content: Bx
diff --git a/regress/mdoc/Nm/break.in b/regress/mdoc/Nm/break.in
new file mode 100644
index 00000000..203ba98e
--- /dev/null
+++ b/regress/mdoc/Nm/break.in
@@ -0,0 +1,12 @@
+.Dd August 17, 2014
+.Dt NM-BREAK 1
+.Os OpenBSD
+.Sh NAME
+.Nm Nm-break
+.Nd name block head breaking another block
+.Sh SYNOPSIS
+.Nm before Bo within
+.Sh DESCRIPTION
+initial text
+.Nm
+final text
diff --git a/regress/mdoc/Nm/break.out_ascii b/regress/mdoc/Nm/break.out_ascii
new file mode 100644
index 00000000..8b94c330
--- /dev/null
+++ b/regress/mdoc/Nm/break.out_ascii
@@ -0,0 +1,12 @@
+NM-BREAK(1) General Commands Manual NM-BREAK(1)
+
+NNAAMMEE
+ NNmm--bbrreeaakk - name block head breaking another block
+
+SSYYNNOOPPSSIISS
+ bbeeffoorree [[wwiitthhiinn]]
+
+DDEESSCCRRIIPPTTIIOONN
+ initial text NNmm--bbrreeaakk final text
+
+OpenBSD August 17, 2014 OpenBSD
diff --git a/regress/mdoc/Nm/break.out_lint b/regress/mdoc/Nm/break.out_lint
new file mode 100644
index 00000000..409b5812
--- /dev/null
+++ b/regress/mdoc/Nm/break.out_lint
@@ -0,0 +1 @@
+mandoc: break.in:9:2: ERROR: inserting missing end of block: Sh breaks Bo
diff --git a/regress/mdoc/Nm/broken.in b/regress/mdoc/Nm/broken.in
new file mode 100644
index 00000000..58a28bad
--- /dev/null
+++ b/regress/mdoc/Nm/broken.in
@@ -0,0 +1,10 @@
+.Dd February 2, 2015
+.Dt NM-BROKEN 1
+.Os OpenBSD
+.Sh NAME
+.Nm Nm-broken
+.Nd broken synapsis name block
+.Sh SYNOPSIS
+.Ft int
+.Fo function
+.Nm name Fc tail
diff --git a/regress/mdoc/Nm/broken.out_ascii b/regress/mdoc/Nm/broken.out_ascii
new file mode 100644
index 00000000..1f9ed5a2
--- /dev/null
+++ b/regress/mdoc/Nm/broken.out_ascii
@@ -0,0 +1,11 @@
+NM-BROKEN(1) General Commands Manual NM-BROKEN(1)
+
+NNAAMMEE
+ NNmm--bbrrookkeenn - broken synapsis name block
+
+SSYYNNOOPPSSIISS
+ _i_n_t
+ ffuunnccttiioonn(nnaammee);
+ tail
+
+OpenBSD February 2, 2015 OpenBSD
diff --git a/regress/mdoc/Nm/empty.in b/regress/mdoc/Nm/empty.in
new file mode 100644
index 00000000..d135c5c0
--- /dev/null
+++ b/regress/mdoc/Nm/empty.in
@@ -0,0 +1,13 @@
+.Dd June 30, 2010
+.Dt NM-EMPTY 2
+.Os OpenBSD
+.Sh NAME
+.Nm Nm-empty
+.Nd handling of empty name macros
+.Sh SYNOPSIS
+.Nm
+.Nm
+.Sh DESCRIPTION
+The
+.Nm
+utility ...
diff --git a/regress/mdoc/Nm/empty.out_ascii b/regress/mdoc/Nm/empty.out_ascii
new file mode 100644
index 00000000..b01d299e
--- /dev/null
+++ b/regress/mdoc/Nm/empty.out_ascii
@@ -0,0 +1,13 @@
+NM-EMPTY(2) System Calls Manual NM-EMPTY(2)
+
+NNAAMMEE
+ NNmm--eemmppttyy - handling of empty name macros
+
+SSYYNNOOPPSSIISS
+ NNmm--eemmppttyy
+ NNmm--eemmppttyy
+
+DDEESSCCRRIIPPTTIIOONN
+ The NNmm--eemmppttyy utility ...
+
+OpenBSD June 30, 2010 OpenBSD
diff --git a/regress/mdoc/Nm/emptyNAME.in b/regress/mdoc/Nm/emptyNAME.in
new file mode 100644
index 00000000..ac635a8c
--- /dev/null
+++ b/regress/mdoc/Nm/emptyNAME.in
@@ -0,0 +1,8 @@
+.Dd July 12, 2012
+.Dt NM-EMPTYNAME 1
+.Os OpenBSD
+.Sh NAME
+.Nm
+.Nd empty NAME \&Nm line
+.Sh SYNOPSIS
+emptyNAME
diff --git a/regress/mdoc/Nm/emptyNAME.out_ascii b/regress/mdoc/Nm/emptyNAME.out_ascii
new file mode 100644
index 00000000..4041e0f8
--- /dev/null
+++ b/regress/mdoc/Nm/emptyNAME.out_ascii
@@ -0,0 +1,9 @@
+NM-EMPTYNAME(1) General Commands Manual NM-EMPTYNAME(1)
+
+NNAAMMEE
+ - empty NAME Nm line
+
+SSYYNNOOPPSSIISS
+ emptyNAME
+
+OpenBSD July 12, 2012 OpenBSD
diff --git a/regress/mdoc/Nm/emptyNAMEuse.in b/regress/mdoc/Nm/emptyNAMEuse.in
new file mode 100644
index 00000000..9e75e619
--- /dev/null
+++ b/regress/mdoc/Nm/emptyNAMEuse.in
@@ -0,0 +1,9 @@
+.Dd July 12, 2012
+.Dt NM-EMPTYNAMEUSE 1
+.Os OpenBSD
+.Sh NAME
+.Nm
+.Nd empty NAME \&Nm line, used later
+.Sh SYNOPSIS
+.Nm some_name
+.Nm
diff --git a/regress/mdoc/Nm/emptyNAMEuse.out_ascii b/regress/mdoc/Nm/emptyNAMEuse.out_ascii
new file mode 100644
index 00000000..452a7e29
--- /dev/null
+++ b/regress/mdoc/Nm/emptyNAMEuse.out_ascii
@@ -0,0 +1,10 @@
+NM-EMPTYNAMEUSE(1) General Commands Manual NM-EMPTYNAMEUSE(1)
+
+NNAAMMEE
+ - empty NAME Nm line, used later
+
+SSYYNNOOPPSSIISS
+ ssoommee__nnaammee
+ ssoommee__nnaammee
+
+OpenBSD July 12, 2012 OpenBSD
diff --git a/regress/mdoc/Nm/font.in b/regress/mdoc/Nm/font.in
new file mode 100644
index 00000000..c68a501b
--- /dev/null
+++ b/regress/mdoc/Nm/font.in
@@ -0,0 +1,10 @@
+.Dd July 9, 2012
+.Dt NM-FONT 1
+.Os OpenBSD
+.Sh NAME
+.Nm Nm-font
+.Nd changing fonts inside the name macro
+.Sh DESCRIPTION
+normal text
+.Nm bold\\fIemphasis\\fPback
+trailing text
diff --git a/regress/mdoc/Nm/font.out_ascii b/regress/mdoc/Nm/font.out_ascii
new file mode 100644
index 00000000..d6516ae5
--- /dev/null
+++ b/regress/mdoc/Nm/font.out_ascii
@@ -0,0 +1,9 @@
+NM-FONT(1) General Commands Manual NM-FONT(1)
+
+NNAAMMEE
+ NNmm--ffoonntt - changing fonts inside the name macro
+
+DDEESSCCRRIIPPTTIIOONN
+ normal text bboolldd_e_m_p_h_a_s_i_sbbaacckk trailing text
+
+OpenBSD July 9, 2012 OpenBSD
diff --git a/regress/mdoc/Nm/long.in b/regress/mdoc/Nm/long.in
new file mode 100644
index 00000000..662360e4
--- /dev/null
+++ b/regress/mdoc/Nm/long.in
@@ -0,0 +1,11 @@
+.Dd April 4, 2014
+.Dt NM-LONG 1
+.Os OpenBSD
+.Sh NAME
+.Nm \&Nm-long
+.Nd long \&Nm in the SYNOPSIS
+.Sh SYNOPSIS
+.Nm "This is a terribly long name, it is so long that it does not fit \
+one one single line -"
+.Fl o
+.Ar
diff --git a/regress/mdoc/Nm/long.out_ascii b/regress/mdoc/Nm/long.out_ascii
new file mode 100644
index 00000000..f6792581
--- /dev/null
+++ b/regress/mdoc/Nm/long.out_ascii
@@ -0,0 +1,14 @@
+NM-LONG(1) General Commands Manual NM-LONG(1)
+
+NNAAMMEE
+ NNmm--lloonngg - long Nm in the SYNOPSIS
+
+SSYYNNOOPPSSIISS
+ TThhiiss iiss aa tteerrrriibbllyy lloonngg nnaammee,, iitt iiss ssoo lloonngg tthhaatt iitt ddooeess nnoott ffiitt oonnee oonnee
+ ssiinnggllee
+ lliinnee
+ --
+ --oo
+ _f_i_l_e _._._.
+
+OpenBSD April 4, 2014 OpenBSD
diff --git a/regress/mdoc/Nm/par.in b/regress/mdoc/Nm/par.in
new file mode 100644
index 00000000..1d5e3ebd
--- /dev/null
+++ b/regress/mdoc/Nm/par.in
@@ -0,0 +1,11 @@
+.Dd February 3, 2015
+.Dt NM-PAR 1
+.Os OpenBSD
+.Sh NAME
+.Nm Nm-par
+.Nd paragraph macro in a synopsis name block
+.Sh SYNOPSIS
+.Nm
+.Fl a
+.Pp
+.Fl b
diff --git a/regress/mdoc/Nm/par.out_ascii b/regress/mdoc/Nm/par.out_ascii
new file mode 100644
index 00000000..8943d37f
--- /dev/null
+++ b/regress/mdoc/Nm/par.out_ascii
@@ -0,0 +1,11 @@
+NM-PAR(1) General Commands Manual NM-PAR(1)
+
+NNAAMMEE
+ NNmm--ppaarr - paragraph macro in a synopsis name block
+
+SSYYNNOOPPSSIISS
+ NNmm--ppaarr --aa
+
+ --bb
+
+OpenBSD February 3, 2015 OpenBSD
diff --git a/regress/mdoc/Nm/parns.in b/regress/mdoc/Nm/parns.in
new file mode 100644
index 00000000..03f2d641
--- /dev/null
+++ b/regress/mdoc/Nm/parns.in
@@ -0,0 +1,23 @@
+.Dd February 3, 2015
+.Dt NM-PAR 1
+.Os OpenBSD
+.Sh NAME
+.Nm Nm-par
+.Nd paragraph macro in a name block
+.Sh DESCRIPTION
+.nr nS 1
+.Nm
+.Fl a
+.Pp
+.Fl b
+.Nm
+.Fl a
+.nr nS 0
+.Pp
+.Fl b
+.nr nS 1
+.Nm
+.Oo Fl a
+.nr nS 0
+.Pp
+.Fl b Oc
diff --git a/regress/mdoc/Nm/parns.out_ascii b/regress/mdoc/Nm/parns.out_ascii
new file mode 100644
index 00000000..daa6331e
--- /dev/null
+++ b/regress/mdoc/Nm/parns.out_ascii
@@ -0,0 +1,17 @@
+NM-PAR(1) General Commands Manual NM-PAR(1)
+
+NNAAMMEE
+ NNmm--ppaarr - paragraph macro in a name block
+
+DDEESSCCRRIIPPTTIIOONN
+ NNmm--ppaarr --aa
+
+ --bb
+ NNmm--ppaarr --aa
+
+ --bb
+ NNmm--ppaarr [--aa
+
+ --bb]
+
+OpenBSD February 3, 2015 OpenBSD
diff --git a/regress/mdoc/Nm/punct.in b/regress/mdoc/Nm/punct.in
new file mode 100644
index 00000000..254adfdf
--- /dev/null
+++ b/regress/mdoc/Nm/punct.in
@@ -0,0 +1,39 @@
+.Dd August 21, 2014
+.Dt NM-PUNCT 1
+.Os OpenBSD
+.Sh NAME
+.Nm Nm-punct
+.Nd punctuation handling by the Nm macro
+.Sh DESCRIPTION
+closing punctuation
+.Nm a )
+only one
+.Nm )
+only more than one
+.Nm ) )
+middle
+.Nm a ) z
+start
+.Nm ) z
+dot
+.Nm . z
+comma
+.Nm , z
+semicolon
+.Nm ; z
+colon
+.Nm : z
+quest
+.Nm ? z
+excl
+.Nm ! z
+paren
+.Nm ) z
+bracket
+.Nm ] z
+bar
+.Nm | m
+op paren
+.Nm ( a
+op bracket
+.Nm [ a
diff --git a/regress/mdoc/Nm/punct.out_ascii b/regress/mdoc/Nm/punct.out_ascii
new file mode 100644
index 00000000..74cb98f4
--- /dev/null
+++ b/regress/mdoc/Nm/punct.out_ascii
@@ -0,0 +1,12 @@
+NM-PUNCT(1) General Commands Manual NM-PUNCT(1)
+
+NNAAMMEE
+ NNmm--ppuunncctt - punctuation handling by the Nm macro
+
+DDEESSCCRRIIPPTTIIOONN
+ closing punctuation aa) only one NNmm--ppuunncctt) only more than one NNmm--ppuunncctt))
+ middle aa) zz start NNmm--ppuunncctt) z dot NNmm--ppuunncctt. z comma NNmm--ppuunncctt, z semicolon
+ NNmm--ppuunncctt; z colon NNmm--ppuunncctt: z quest NNmm--ppuunncctt? z excl NNmm--ppuunncctt! z paren
+ NNmm--ppuunncctt) z bracket NNmm--ppuunncctt] z bar | mm op paren (aa op bracket [aa
+
+OpenBSD August 21, 2014 OpenBSD