source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* mandoc: end of sentence detection after .ME and .UE, useful for some GNU
@ 2018-08-18 15:14 schwarze
  0 siblings, 0 replies; only message in thread
From: schwarze @ 2018-08-18 15:14 UTC (permalink / raw)
  To: source

Log Message:
-----------
end of sentence detection after .ME and .UE, useful for some GNU manuals

Modified Files:
--------------
    mandoc:
        man_macro.c

Revision Data
-------------
Index: man_macro.c
===================================================================
RCS file: /home/cvs/mandoc/mandoc/man_macro.c,v
retrieving revision 1.129
retrieving revision 1.130
diff -Lman_macro.c -Lman_macro.c -u -p -r1.129 -r1.130
--- man_macro.c
+++ man_macro.c
@@ -262,6 +262,8 @@ blk_close(MACRO_PROT_ARGS)
 	if (buf[*pos] != '\0') {
 		roff_word_alloc(man, line, ppos, buf + *pos);
 		man->last->flags |= NODE_DELIMC;
+		if (mandoc_eos(man->last->string, strlen(man->last->string)))
+			man->last->flags |= NODE_EOS;
 	}
 
 	/* Move a trailing paragraph behind the block. */
--
 To unsubscribe send an email to source+unsubscribe@mandoc.bsd.lv

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

only message in thread, other threads:[~2018-08-18 15:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-18 15:14 mandoc: end of sentence detection after .ME and .UE, useful for some GNU 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).