aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mdoc_macro.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2012-11-18 00:05:35 +0000
committerIngo Schwarze <schwarze@openbsd.org>2012-11-18 00:05:35 +0000
commit32784d2c1c250e62b6499f8b4e8d0fcdd98ba61b (patch)
tree2d0f6672071cd1ddffdce4e2c10d761f7220febd /mdoc_macro.c
parentc327796c3322160a086f94f49dba762045631503 (diff)
downloadmandoc-32784d2c1c250e62b6499f8b4e8d0fcdd98ba61b.tar.gz
mandoc-32784d2c1c250e62b6499f8b4e8d0fcdd98ba61b.tar.zst
mandoc-32784d2c1c250e62b6499f8b4e8d0fcdd98ba61b.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 Add the remaining issues from the same report to the TODO file.
Diffstat (limited to 'mdoc_macro.c')
-rw-r--r--mdoc_macro.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/mdoc_macro.c b/mdoc_macro.c
index ae59e979..1cec1ecd 100644
--- a/mdoc_macro.c
+++ b/mdoc_macro.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc_macro.c,v 1.119 2012/11/17 00:26:33 schwarze Exp $ */
+/* $Id: mdoc_macro.c,v 1.120 2012/11/18 00:05:35 schwarze Exp $ */
/*
* Copyright (c) 2008-2012 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010, 2012 Ingo Schwarze <schwarze@openbsd.org>
@@ -612,7 +612,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);