summaryrefslogtreecommitdiffstats
path: root/usr.bin/mandoc/mdoc_macro.c
diff options
context:
space:
mode:
authorschwarze <schwarze@openbsd.org>2012-11-18 00:05:28 +0000
committerschwarze <schwarze@openbsd.org>2012-11-18 00:05:28 +0000
commit7dad7ffd44cb275dd2522df2a20a110ca1fba6db (patch)
treedad33d4a784342dbb17ddd587a37a3775869b7a5 /usr.bin/mandoc/mdoc_macro.c
parent Don't map a buffer (and potentially sleep) when invalidating it in vinvalbuf. (diff)
downloadwireguard-openbsd-7dad7ffd44cb275dd2522df2a20a110ca1fba6db.tar.xz
wireguard-openbsd-7dad7ffd44cb275dd2522df2a20a110ca1fba6db.zip
Fix four small whitespace issues related to trailing punctuation
reported by Nicolas Joly <njoly at pasteur dot fr>: - add EOS spacing after trailing punctuation after .Cd, .Fc, and .Lb - suppress spacing before trailing punctuation after .Fd
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 4600b4e499f..8093a52a50a 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.76 2012/11/17 00:25:20 schwarze Exp $ */
+/* $Id: mdoc_macro.c,v 1.77 2012/11/18 00:05:28 schwarze Exp $ */
/*
* Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010, 2012 Ingo Schwarze <schwarze@openbsd.org>
@@ -608,7 +608,8 @@ dword(struct mdoc *mdoc, int line,
*/
else if (DELIM_CLOSE == d && mdoc->last->prev &&
- mdoc->last->prev->tok != MDOC_No)
+ mdoc->last->prev->tok != MDOC_No &&
+ mdoc->last->parent->tok != MDOC_Fd)
mdoc->last->flags |= MDOC_DELIMC;
return(1);