diff options
author | 2010-07-16 00:34:33 +0000 | |
---|---|---|
committer | 2010-07-16 00:34:33 +0000 | |
commit | a5f9a6eadb3286c7373c3f6944bcc1fc436a5539 (patch) | |
tree | 2fdb474659a3cc8415335f76b883395a2a9a1eb8 /usr.bin/mandoc/man.c | |
parent | After .Sm on, spacing ought to restart right away, before the next token, (diff) | |
download | wireguard-openbsd-a5f9a6eadb3286c7373c3f6944bcc1fc436a5539.tar.xz wireguard-openbsd-a5f9a6eadb3286c7373c3f6944bcc1fc436a5539.zip |
Text ending in a full stop, exclamation mark or question mark
should not flag the end of a sentence if:
1) The punctuation is followed by closing delimiters
and not preceded by alphanumeric characters, like in
"There is no full stop (.) in this sentence"
or
2) The punctuation is a child of a macro
and not preceded by alphanumeric characters, like in
"There is no full stop
.Pq \&.
in this sentence"
jmc@ and sobrado@ like this
Diffstat (limited to 'usr.bin/mandoc/man.c')
-rw-r--r-- | usr.bin/mandoc/man.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/mandoc/man.c b/usr.bin/mandoc/man.c index 9ac7f5f9ad9..cb994e86653 100644 --- a/usr.bin/mandoc/man.c +++ b/usr.bin/mandoc/man.c @@ -1,4 +1,4 @@ -/* $Id: man.c,v 1.36 2010/07/13 01:09:13 schwarze Exp $ */ +/* $Id: man.c,v 1.37 2010/07/16 00:34:33 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv> * @@ -405,7 +405,7 @@ man_ptext(struct man *m, int line, char *buf, int offs) */ assert(i); - if (mandoc_eos(buf, (size_t)i)) + if (mandoc_eos(buf, (size_t)i, 0)) m->last->flags |= MAN_EOS; descope: |