diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2010-07-18 17:00:26 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2010-07-18 17:00:26 +0000 |
commit | 8ee4ce8a2dfd617e29674aa4e0718c32e1ad02c5 (patch) | |
tree | 99a0b4251a9c003b890bcd14a4cdd05f27ed8ac1 /libmandoc.h | |
parent | 7b7aebeead2ccc662a874fcf5b6a0d23e1e2bff3 (diff) | |
download | mandoc-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 'libmandoc.h')
-rw-r--r-- | libmandoc.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libmandoc.h b/libmandoc.h index b25e4a7e..ab21a421 100644 --- a/libmandoc.h +++ b/libmandoc.h @@ -1,6 +1,6 @@ -/* $Id: libmandoc.h,v 1.8 2010/06/19 20:46:27 kristaps Exp $ */ +/* $Id: libmandoc.h,v 1.9 2010/07/18 17:00:26 schwarze Exp $ */ /* - * Copyright (c) 2009 Kristaps Dzonsons <kristaps@bsd.lv> + * Copyright (c) 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -29,7 +29,7 @@ time_t mandoc_a2time(int, const char *); #define MTIME_REDUCED (1 << 1) #define MTIME_MDOCDATE (1 << 2) #define MTIME_ISO_8601 (1 << 3) -int mandoc_eos(const char *, size_t); +int mandoc_eos(const char *, size_t, int); int mandoc_hyph(const char *, const char *); __END_DECLS |