diff options
author | 2011-07-24 20:02:59 +0000 | |
---|---|---|
committer | 2011-07-24 20:02:59 +0000 | |
commit | a2ffdd655639c6f2371a576f77047d50f46e6786 (patch) | |
tree | e15ae3aa42fa79acad86cff503626764aed068c4 | |
parent | Document fma, fmaf, fmal, nexttoward, nexttowardf, nexttowardl. (diff) | |
download | wireguard-openbsd-a2ffdd655639c6f2371a576f77047d50f46e6786.tar.xz wireguard-openbsd-a2ffdd655639c6f2371a576f77047d50f46e6786.zip |
check opening and middle punctuation as well
-rw-r--r-- | regress/usr.bin/mandoc/mdoc/Op/punct.in | 30 | ||||
-rw-r--r-- | regress/usr.bin/mandoc/mdoc/Op/punct.out_ascii | 11 |
2 files changed, 31 insertions, 10 deletions
diff --git a/regress/usr.bin/mandoc/mdoc/Op/punct.in b/regress/usr.bin/mandoc/mdoc/Op/punct.in index 76c873d2342..484e2aecf87 100644 --- a/regress/usr.bin/mandoc/mdoc/Op/punct.in +++ b/regress/usr.bin/mandoc/mdoc/Op/punct.in @@ -1,17 +1,31 @@ -.Dd April 7, 2010 +.Dd June 24, 2011 .Dt OP-PUNCT 1 .Os .Sh NAME .Nm Op-punct .Nd punctuation handling by the Op macro .Sh DESCRIPTION -closing punctuation +at the beginning: +.Op ( z +.Op | z +.Op . z +.Pp +in the middle: +.Op a ( z +.Op a | z +.Op a . z +.Pp +at the end: +.Op a ( +.Op a | .Op a . -only one +.Pp +punctuation only: +.Op ( +.Op | .Op . -only more than one +.Pp +more than one: +.Op ( ( +.Op | | .Op . . -middle -.Op a . z -start -.Op . z diff --git a/regress/usr.bin/mandoc/mdoc/Op/punct.out_ascii b/regress/usr.bin/mandoc/mdoc/Op/punct.out_ascii index ef9b56cca8b..f6ff295fa85 100644 --- a/regress/usr.bin/mandoc/mdoc/Op/punct.out_ascii +++ b/regress/usr.bin/mandoc/mdoc/Op/punct.out_ascii @@ -4,6 +4,13 @@ NNAAMMEE OOpp--ppuunncctt - punctuation handling by the Op macro DDEESSCCRRIIPPTTIIOONN - closing punctuation [a]. only one []. only more than one [].. middle - [a. z] start [. z] + at the beginning: ([z] [| z] [. z] + + in the middle: [a (z] [a | z] [a. z] + + at the end: [a (] [a |] [a]. + + punctuation only: ([] [|] []. + + more than one: (([] [| |] [].. |