diff options
author | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-07-24 12:17:25 +0000 |
---|---|---|
committer | Kristaps Dzonsons <kristaps@bsd.lv> | 2009-07-24 12:17:25 +0000 |
commit | b7bd09220f5261b8ac0512aa2d7f046cedba9040 (patch) | |
tree | acc7abd7f79b9dc3f6fd9d049e1184fe4c7f4862 /mdoc_macro.c | |
parent | 9a5060e616c6944846b2714f10747e07ddbab0b8 (diff) | |
download | mandoc-b7bd09220f5261b8ac0512aa2d7f046cedba9040.tar.gz |
Allow `An' to accept NULL arguments (-split/-nosplit).
Diffstat (limited to 'mdoc_macro.c')
-rw-r--r-- | mdoc_macro.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/mdoc_macro.c b/mdoc_macro.c index 2def1606..bbc89148 100644 --- a/mdoc_macro.c +++ b/mdoc_macro.c @@ -742,15 +742,17 @@ in_line(MACRO_PROT_ARGS) * usually because of reserved words) to squeak by. */ switch (tok) { - case (MDOC_Nm): + case (MDOC_An): + /* FALLTHROUGH */ + case (MDOC_Ar): /* FALLTHROUGH */ case (MDOC_Fl): /* FALLTHROUGH */ case (MDOC_Lk): /* FALLTHROUGH */ - case (MDOC_Pa): + case (MDOC_Nm): /* FALLTHROUGH */ - case (MDOC_Ar): + case (MDOC_Pa): nc = 1; break; default: |