From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from krisdoz.my.domain (schwarze@localhost [127.0.0.1]) by krisdoz.my.domain (8.14.5/8.14.5) with ESMTP id rBMDPHfm015708 for ; Sun, 22 Dec 2013 08:25:17 -0500 (EST) Received: (from schwarze@localhost) by krisdoz.my.domain (8.14.5/8.14.3/Submit) id rBMDPHu6005806; Sun, 22 Dec 2013 08:25:17 -0500 (EST) Date: Sun, 22 Dec 2013 08:25:17 -0500 (EST) Message-Id: <201312221325.rBMDPHu6005806@krisdoz.my.domain> X-Mailinglist: mdocml-source Reply-To: source@mdocml.bsd.lv MIME-Version: 1.0 From: schwarze@mdocml.bsd.lv To: source@mdocml.bsd.lv Subject: mdocml: Implement end-of-sentence spacing at the end of man(7) macro X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Log Message: ----------- Implement end-of-sentence spacing at the end of man(7) macro lines. Patch from Franco Fichtner (DragonFly). Modified Files: -------------- mdocml: man_macro.c Revision Data ------------- Index: man_macro.c =================================================================== RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/man_macro.c,v retrieving revision 1.77 retrieving revision 1.78 diff -Lman_macro.c -Lman_macro.c -u -p -r1.77 -r1.78 --- man_macro.c +++ man_macro.c @@ -432,6 +432,15 @@ in_line_eoln(MACRO_PROT_ARGS) } /* + * 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 * waiting for terms to load into our context. -- To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv