summaryrefslogtreecommitdiffstats
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
commit24999e02cb489a8e3d5df9fd7000905e9be9e30d (patch)
treec95e280ae59c93e494f5bac4b3912bc8bd85d6fb /mdoc_macro.c
parent1f03d7beeffd15115d82eff4add4681db338cdd1 (diff)
downloadmandoc-24999e02cb489a8e3d5df9fd7000905e9be9e30d.tar.gz
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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mdoc_macro.c b/mdoc_macro.c
index f8608764..e946d7ab 100644
--- a/mdoc_macro.c
+++ b/mdoc_macro.c
@@ -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);