diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2011-04-24 16:49:11 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2011-04-24 16:49:11 +0000 |
commit | 31d29260a8e2100ecfe0927bc043c738f51d9295 (patch) | |
tree | 1ea0ae7c215e7416cf5a596c92c50b38f46317b5 | |
parent | ec07857083a37a02ba8a47859b2d5c415d7b6820 (diff) |
Closing delimiters only suppress spacing when they follow something.
Fixing a regression introduced in bsd.lv rev. 1.105.
-rw-r--r-- | usr.bin/mandoc/mdoc_macro.c | 5 |
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); |