diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2014-07-02 11:42:57 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2014-07-02 11:42:57 +0000 |
commit | eb23be324e2d6141312f694f504b184ccf326d9b (patch) | |
tree | 2fbabacafcbfc24cca41fde40aa473069c1312a2 /regress/usr.bin/mandoc/man/TP | |
parent | ec55a547f2c134a78adccbca63f05be1cc2b66c8 (diff) |
Clean up warnings related to macros and nesting.
* Hierarchical naming of enum mandocerr items.
* Improve the wording to make it comprehensible.
* Mention the offending macro.
* Garbage collect one chunk of ancient, long unreachable code.
Diffstat (limited to 'regress/usr.bin/mandoc/man/TP')
-rw-r--r-- | regress/usr.bin/mandoc/man/TP/Makefile | 4 | ||||
-rw-r--r-- | regress/usr.bin/mandoc/man/TP/double.in | 1 | ||||
-rw-r--r-- | regress/usr.bin/mandoc/man/TP/double.out_lint | 5 |
3 files changed, 9 insertions, 1 deletions
diff --git a/regress/usr.bin/mandoc/man/TP/Makefile b/regress/usr.bin/mandoc/man/TP/Makefile index d5b74f160d1..7f3d995fe2e 100644 --- a/regress/usr.bin/mandoc/man/TP/Makefile +++ b/regress/usr.bin/mandoc/man/TP/Makefile @@ -1,6 +1,8 @@ -# $OpenBSD: Makefile,v 1.7 2014/04/08 07:13:01 schwarze Exp $ +# $OpenBSD: Makefile,v 1.8 2014/07/02 11:42:56 schwarze Exp $ REGRESS_TARGETS = badarg double literal longhead macrotag manyargs REGRESS_TARGETS += sameline width +LINT_TARGETS = double + .include <bsd.regress.mk> diff --git a/regress/usr.bin/mandoc/man/TP/double.in b/regress/usr.bin/mandoc/man/TP/double.in index 8d59f1f9fc5..4a6b1674a1b 100644 --- a/regress/usr.bin/mandoc/man/TP/double.in +++ b/regress/usr.bin/mandoc/man/TP/double.in @@ -27,6 +27,7 @@ at which point will this text wrap to the next line? normal paragraph: This is a rather long text because we want to test the text width; at which point will this text wrap to the next line? +.B .PP .TP 16n .TP 16n diff --git a/regress/usr.bin/mandoc/man/TP/double.out_lint b/regress/usr.bin/mandoc/man/TP/double.out_lint new file mode 100644 index 00000000000..9040bc5224a --- /dev/null +++ b/regress/usr.bin/mandoc/man/TP/double.out_lint @@ -0,0 +1,5 @@ +mandoc: double.in:20:2: WARNING: skipping paragraph macro: PP empty +mandoc: double.in:21:2: WARNING: line scope broken: TP breaks TP +mandoc: double.in:30:2: WARNING: line scope broken: PP breaks B +mandoc: double.in:31:2: WARNING: skipping paragraph macro: PP empty +mandoc: double.in:32:2: WARNING: line scope broken: TP breaks TP |