From 7b12beb495763dde4864dda27c3bf418a814e9c7 Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Mon, 23 Dec 2013 10:05:03 +0100 Subject: [PATCH] mdocml: end-of-sentence spacing for man(7) macros This patch needed upstream confirmation. It got merged yesterday, so it's safe to pull this in now. --- contrib/mdocml/README.DRAGONFLY | 1 + contrib/mdocml/man_macro.c | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/contrib/mdocml/README.DRAGONFLY b/contrib/mdocml/README.DRAGONFLY index 813789939d..21ecb8afbd 100644 --- a/contrib/mdocml/README.DRAGONFLY +++ b/contrib/mdocml/README.DRAGONFLY @@ -14,6 +14,7 @@ Local modifications applied to the following files: config.h lib.in (upstream sync) msec.in + man_macro.c (upstream sync) mandoc.3 (upstream sync) mandocdb.c mdoc.7 (upstream sync) diff --git a/contrib/mdocml/man_macro.c b/contrib/mdocml/man_macro.c index 6631f14db4..e9cb8984d8 100644 --- a/contrib/mdocml/man_macro.c +++ b/contrib/mdocml/man_macro.c @@ -424,6 +424,15 @@ in_line_eoln(MACRO_PROT_ARGS) return(0); } + /* + * Append MAN_EOS in case the last snipped argument + * ends with a dot, e.g. `.IR syslog (3).' + */ + + if (n != man->last && + mandoc_eos(man->last->string, strlen(man->last->string), 0)) + man->last->flags |= MAN_EOS; + /* * If no arguments are specified and this is MAN_SCOPED (i.e., * next-line scoped), then set our mode to indicate that we're -- 2.41.0