diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2019-04-21 23:51:21 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2019-04-21 23:51:21 +0000 |
commit | 87197050230ea195e7be326324f2864a1f94d442 (patch) | |
tree | 785abf914a725bf4ac44f552c4396b02d16d590a /regress/roff/de/empty.in | |
parent | ee05fc6b9d7afc49d5425027d5c9fd1a99e75ca8 (diff) | |
download | mandoc-87197050230ea195e7be326324f2864a1f94d442.tar.gz |
When calling an empty macro, do not clobber existing arguments.
Fixing a bug found with the groffer(1) version 1.19 manual page
following a report from Jan Stary.
Diffstat (limited to 'regress/roff/de/empty.in')
-rw-r--r-- | regress/roff/de/empty.in | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/regress/roff/de/empty.in b/regress/roff/de/empty.in new file mode 100644 index 00000000..dc5e1c93 --- /dev/null +++ b/regress/roff/de/empty.in @@ -0,0 +1,18 @@ +.\" $OpenBSD: empty.in,v 1.1 2019/04/21 23:45:50 schwarze Exp $ +.Dd $Mdocdate$ +.Dt DE-EMPTY 1 +.Os +.Sh NAME +.Nm de-empty +.Nd empty user-defined macro with arguments +.Sh DESCRIPTION +initial text +.de empty +.. +.de real +arg=\\$1 +.empty wrong +arg=\\$1 +.. +.real right +final text |