summaryrefslogtreecommitdiffstats
path: root/regress/mdoc
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-06-04 22:16:27 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-06-04 22:16:27 +0000
commit60594285aadf7b17048d8d3b552c3b12563f3622 (patch)
tree3cac3cd457e34ddd0ba29522fd90c9818cb0538d /regress/mdoc
parent14deda6326abdec269681291139d0ae022db56f9 (diff)
downloadmandoc-60594285aadf7b17048d8d3b552c3b12563f3622.tar.gz
Fixed `Fn' newline behaviour and added some regression tests to this
extent. Documented `Fn'. Please note the COMPATIBILITY note regarding historic groff.
Diffstat (limited to 'regress/mdoc')
-rw-r--r--regress/mdoc/Fn/fn1.in21
-rw-r--r--regress/mdoc/Fn/fn2.in16
2 files changed, 37 insertions, 0 deletions
diff --git a/regress/mdoc/Fn/fn1.in b/regress/mdoc/Fn/fn1.in
new file mode 100644
index 00000000..02a17aca
--- /dev/null
+++ b/regress/mdoc/Fn/fn1.in
@@ -0,0 +1,21 @@
+.Dd $Mdocdate$
+.Dt FOO 1
+.Os
+.Sh NAME
+.Nm foo
+.Nd bar
+.Sh SYNOPSIS
+1
+.In 2
+a
+.Fn 3
+.Fn 4 5 6
+.Ar a Fn 4
+5
+.Sh DESCRIPTION
+1
+.In 2
+.Fn 3
+.Fn 3 4 5
+.Ar a Fn 6
+4
diff --git a/regress/mdoc/Fn/fn2.in b/regress/mdoc/Fn/fn2.in
new file mode 100644
index 00000000..94405bba
--- /dev/null
+++ b/regress/mdoc/Fn/fn2.in
@@ -0,0 +1,16 @@
+.Dd $Mdocdate$
+.Dt FOO 1
+.Os
+.Sh NAME
+.Nm foo
+.Nd bar
+.Sh SYNOPSIS
+.Fn 1
+.Fn "1 2"
+.Fn "1 2" "3 4"
+.Fn "1 2" "4"
+.Sh DESCRIPTION
+.Fn 1
+.Fn "1 2"
+.Fn "1 2" "3 4"
+.Fn "1 2" "4"