summaryrefslogtreecommitdiffstats
path: root/mdoc_macro.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2015-02-05 01:46:56 +0000
committerIngo Schwarze <schwarze@openbsd.org>2015-02-05 01:46:56 +0000
commit902f6a979cb9238ddee3e60feebb858f2c773e7f (patch)
tree2bfaae099eaf4cc972ec0029c5ffbd9d4e62586f /mdoc_macro.c
parent4514bbe8133f9b6a03f35d9c4321d64e48e6cf33 (diff)
downloadmandoc-902f6a979cb9238ddee3e60feebb858f2c773e7f.tar.gz
fix handling of empty .An macros
Diffstat (limited to 'mdoc_macro.c')
-rw-r--r--mdoc_macro.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mdoc_macro.c b/mdoc_macro.c
index 00bd7fa7..78a8e5e6 100644
--- a/mdoc_macro.c
+++ b/mdoc_macro.c
@@ -772,7 +772,7 @@ in_line(MACRO_PROT_ARGS)
*/
if (ac == ARGS_PUNCT) {
- if (cnt == 0 && nc == 0)
+ if (cnt == 0 && (nc == 0 || tok == MDOC_An))
mdoc->flags |= MDOC_NODELIMC;
break;
}