summaryrefslogtreecommitdiffstats
path: root/usr.bin/mandoc/mdoc_macro.c
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2011-04-24 16:49:10 +0000
committerschwarze <schwarze@openbsd.org>2011-04-24 16:49:10 +0000
commit3082ca77ce8452c92ad94ce98525fc53ad704def (patch)
tree9e871c8e0ca1c0b24aca603d06db493c862bb641 /usr.bin/mandoc/mdoc_macro.c
parentUser defined macros may invoke high-level macros. (diff)
downloadwireguard-openbsd-3082ca77ce8452c92ad94ce98525fc53ad704def.tar.xz
wireguard-openbsd-3082ca77ce8452c92ad94ce98525fc53ad704def.zip
Closing delimiters only suppress spacing when they follow something.
Fixing a regression introduced in bsd.lv rev. 1.105.
Diffstat (limited to 'usr.bin/mandoc/mdoc_macro.c')
-rw-r--r--usr.bin/mandoc/mdoc_macro.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/mandoc/mdoc_macro.c b/usr.bin/mandoc/mdoc_macro.c
index d257d863f33..e29fb2610d6 100644
--- a/usr.bin/mandoc/mdoc_macro.c
+++ b/usr.bin/mandoc/mdoc_macro.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc_macro.c,v 1.66 2011/04/24 16:22:02 schwarze Exp $ */
+/* $Id: mdoc_macro.c,v 1.67 2011/04/24 16:49:10 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010 Ingo Schwarze <schwarze@openbsd.org>
@@ -596,7 +596,8 @@ dword(struct mdoc *m, int line,
if (DELIM_OPEN == d)
m->last->flags |= MDOC_DELIMO;
- else if (DELIM_CLOSE == d)
+ else if (DELIM_CLOSE == d && m->last->prev &&
+ m->last->prev->tok != MDOC_No)
m->last->flags |= MDOC_DELIMC;
return(1);