aboutsummaryrefslogtreecommitdiffstatshomepage
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
commit8ee4ce8a2dfd617e29674aa4e0718c32e1ad02c5 (patch)
tree99a0b4251a9c003b890bcd14a4cdd05f27ed8ac1 /mdoc.c
parent7b7aebeead2ccc662a874fcf5b6a0d23e1e2bff3 (diff)
downloadmandoc-8ee4ce8a2dfd617e29674aa4e0718c32e1ad02c5.tar.gz
mandoc-8ee4ce8a2dfd617e29674aa4e0718c32e1ad02c5.tar.zst
mandoc-8ee4ce8a2dfd617e29674aa4e0718c32e1ad02c5.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" "looks fine" to kristaps@; tested by jmc@ and sobrado@
Diffstat (limited to 'mdoc.c')
-rw-r--r--mdoc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mdoc.c b/mdoc.c
index c8d9fed4..bcc6e4ca 100644
--- a/mdoc.c
+++ b/mdoc.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc.c,v 1.158 2010/07/07 15:04:54 kristaps Exp $ */
+/* $Id: mdoc.c,v 1.159 2010/07/18 17:00:26 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010 Ingo Schwarze <schwarze@openbsd.org>
@@ -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);