summaryrefslogtreecommitdiffstats
path: root/mdoc.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2010-07-18 17:00:26 +0000
committerIngo Schwarze <schwarze@openbsd.org>2010-07-18 17:00:26 +0000
commit0b38528b1ed620cf8afcbd2dc24687537a6d863f (patch)
tree55d6f8e4a7e3cfcba996cb4054255a17ae58b1b9 /mdoc.c
parent29ae66f24ac7fa681d22a8d5315e2faf09350baf (diff)
downloadmandoc-0b38528b1ed620cf8afcbd2dc24687537a6d863f.tar.gz
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" "looks fine" to kristaps@; tested by jmc@ and sobrado@
Diffstat (limited to 'mdoc.c')
-rw-r--r--mdoc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mdoc.c b/mdoc.c
index 6e997042..d8ea5918 100644
--- a/mdoc.c
+++ b/mdoc.c
@@ -721,7 +721,7 @@ mdoc_ptext(struct mdoc *m, int line, char *buf, int offs)
assert(buf < end);
- if (mandoc_eos(buf+offs, (size_t)(end-buf-offs)))
+ if (mandoc_eos(buf+offs, (size_t)(end-buf-offs), 0))
m->last->flags |= MDOC_EOS;
return(1);