aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mandoc.h
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2017-01-28 23:30:08 +0000
committerIngo Schwarze <schwarze@openbsd.org>2017-01-28 23:30:08 +0000
commit5a526843b7a81102e56a684b368893853ed01ee7 (patch)
treea3053105d9025b04fa81459d08c12a275c0f98c2 /mandoc.h
parent0ead4d49fc7173eede03a8a404e8a08c88072f08 (diff)
downloadmandoc-5a526843b7a81102e56a684b368893853ed01ee7.tar.gz
mandoc-5a526843b7a81102e56a684b368893853ed01ee7.tar.zst
mandoc-5a526843b7a81102e56a684b368893853ed01ee7.zip
Add a warning "new sentence, new line".
This does not attempt to pinpoint each and every offender, but instead tries very hard to avoid false positives: Currently, there are only two false positives in the whole OpenBSD base system. Only do this in mdoc(7), not in man(7), because manuals written in man(7) typically have much worse problems than this. OK jmc@ on a previous version of the patch
Diffstat (limited to 'mandoc.h')
-rw-r--r--mandoc.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/mandoc.h b/mandoc.h
index 2ea64ea0..a80d6ae7 100644
--- a/mandoc.h
+++ b/mandoc.h
@@ -1,4 +1,4 @@
-/* $Id: mandoc.h,v 1.213 2017/01/09 01:37:03 schwarze Exp $ */
+/* $Id: mandoc.h,v 1.214 2017/01/28 23:30:08 schwarze Exp $ */
/*
* Copyright (c) 2010, 2011, 2014 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010-2017 Ingo Schwarze <schwarze@openbsd.org>
@@ -134,6 +134,7 @@ enum mandocerr {
MANDOCERR_FI_BLANK, /* blank line in fill mode, using .sp */
MANDOCERR_FI_TAB, /* tab in filled text */
MANDOCERR_SPACE_EOL, /* whitespace at end of input line */
+ MANDOCERR_EOS, /* new sentence, new line */
MANDOCERR_COMMENT_BAD, /* bad comment style */
MANDOCERR_ESC_BAD, /* invalid escape sequence: esc */
MANDOCERR_STR_UNDEF, /* undefined string, using "": name */