source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* mdocml: Implement end-of-sentence spacing at the end of man(7) macro
@ 2013-12-22 13:25 schwarze
  0 siblings, 0 replies; only message in thread
From: schwarze @ 2013-12-22 13:25 UTC (permalink / raw)
  To: source

Log Message:
-----------
Implement end-of-sentence spacing at the end of man(7) macro lines.

Patch from Franco Fichtner <franco at lastsummer dot de> (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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-12-22 13:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-12-22 13:25 mdocml: Implement end-of-sentence spacing at the end of man(7) macro schwarze

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).