summaryrefslogtreecommitdiffstats
path: root/man_macro.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2018-08-18 15:13:32 +0000
committerIngo Schwarze <schwarze@openbsd.org>2018-08-18 15:13:32 +0000
commit85ab10047e438f3a86757208987f33f8f4625e66 (patch)
treea8f5a20b3f8483b294a05914c3add9a2e6336cb1 /man_macro.c
parent148ad8680d4a0a9c087cb8cb25ae50926c64f29f (diff)
downloadmandoc-85ab10047e438f3a86757208987f33f8f4625e66.tar.gz
end of sentence detection after .ME and .UE, useful for some GNU manuals
Diffstat (limited to 'man_macro.c')
-rw-r--r--man_macro.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/man_macro.c b/man_macro.c
index 077e1264..f40c08fc 100644
--- a/man_macro.c
+++ b/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. */