aboutsummaryrefslogtreecommitdiffstatshomepage
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
commitd4259559e03832a483906e3fbdece04d42fe0ed0 (patch)
tree04f8ea2d4878fe604d8a85c2e1a0e470a487116f /man_macro.c
parent2e475c800a2c6bbae6f23f9195abe38a441f695b (diff)
downloadmandoc-d4259559e03832a483906e3fbdece04d42fe0ed0.tar.gz
mandoc-d4259559e03832a483906e3fbdece04d42fe0ed0.tar.zst
mandoc-d4259559e03832a483906e3fbdece04d42fe0ed0.zip
end of sentence detection after .ME and .UE, useful for some GNU manuals
Diffstat (limited to 'man_macro.c')
-rw-r--r--man_macro.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/man_macro.c b/man_macro.c
index c54f726e..91a26f35 100644
--- a/man_macro.c
+++ b/man_macro.c
@@ -1,4 +1,4 @@
-/* $Id: man_macro.c,v 1.129 2018/08/18 14:02:56 schwarze Exp $ */
+/* $Id: man_macro.c,v 1.130 2018/08/18 15:13:32 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2012-2015, 2017, 2018 Ingo Schwarze <schwarze@openbsd.org>
@@ -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. */