summaryrefslogtreecommitdiffstats
path: root/mdoc_macro.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2014-12-13 13:14:39 +0000
committerIngo Schwarze <schwarze@openbsd.org>2014-12-13 13:14:39 +0000
commit4f8810a6b21aaef198d7405a74feb429f74a0091 (patch)
treeda80cf883750d6ffd9b033fcf97375e8ac098859 /mdoc_macro.c
parent97f753b93ce2400cb818cd376221849188e66969 (diff)
downloadmandoc-4f8810a6b21aaef198d7405a74feb429f74a0091.tar.gz
Fix a regression found by Carsten dot Kunze at arcor dot de:
Do not show bogus quotes when .Bl -column phrases are quoted.
Diffstat (limited to 'mdoc_macro.c')
-rw-r--r--mdoc_macro.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/mdoc_macro.c b/mdoc_macro.c
index 6d1556b4..f2f59962 100644
--- a/mdoc_macro.c
+++ b/mdoc_macro.c
@@ -672,11 +672,9 @@ macro_or_word(MACRO_PROT_ARGS, int parsed)
p = buf + ppos;
ntok = MDOC_MAX;
- if (mdoc->flags & MDOC_PHRASELIT)
- /* nothing */;
- else if (*p == '"')
+ if (*p == '"')
p++;
- else if (parsed)
+ else if (parsed && ! (mdoc->flags & MDOC_PHRASELIT))
ntok = lookup(mdoc, tok, line, ppos, p);
if (ntok == MDOC_MAX) {