diff options
author | 2018-08-18 15:12:09 +0000 | |
---|---|---|
committer | 2018-08-18 15:12:09 +0000 | |
commit | b1e77ba0482226dd0553f8db719dd6a624a66c15 (patch) | |
tree | 67a79958ee882a3935c99b4fbc637f97e42711cb /usr.bin/mandoc/man_macro.c | |
parent | The .nf/.fi (fill mode) requests never have text children (diff) | |
download | wireguard-openbsd-b1e77ba0482226dd0553f8db719dd6a624a66c15.tar.xz wireguard-openbsd-b1e77ba0482226dd0553f8db719dd6a624a66c15.zip |
end of sentence detection after .ME and .UE, useful for some GNU manuals
Diffstat (limited to 'usr.bin/mandoc/man_macro.c')
-rw-r--r-- | usr.bin/mandoc/man_macro.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/mandoc/man_macro.c b/usr.bin/mandoc/man_macro.c index 6b17f1fcbce..7db973427a9 100644 --- a/usr.bin/mandoc/man_macro.c +++ b/usr.bin/mandoc/man_macro.c @@ -1,4 +1,4 @@ -/* $OpenBSD: man_macro.c,v 1.91 2018/08/18 14:02:52 schwarze Exp $ */ +/* $OpenBSD: man_macro.c,v 1.92 2018/08/18 15:12:09 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2012-2015, 2017, 2018 Ingo Schwarze <schwarze@openbsd.org> @@ -260,6 +260,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. */ |