diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2012-07-18 11:11:12 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2012-07-18 11:11:12 +0000 |
commit | 50e01545158506c75fea9e1828a29ae1b8c911f0 (patch) | |
tree | 5aa45bc2432543e3f9c1c56589afa3665d7c21bd /read.c | |
parent | 7a9cc4a7da8d626f4484e36248129567b2bef7f8 (diff) | |
download | mandoc-50e01545158506c75fea9e1828a29ae1b8c911f0.tar.gz mandoc-50e01545158506c75fea9e1828a29ae1b8c911f0.tar.zst mandoc-50e01545158506c75fea9e1828a29ae1b8c911f0.zip |
Fix handling of paragraph macros inside lists:
* When they are trailing the last item, move them outside the list.
* When they are trailing any other none-compact item, drop them.
OpenBSD rev. mdoc_validate.c 1.107, mdoc.c 1.91
Diffstat (limited to 'read.c')
-rw-r--r-- | read.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1,4 +1,4 @@ -/* $Id: read.c,v 1.30 2012/07/12 15:11:14 schwarze Exp $ */ +/* $Id: read.c,v 1.31 2012/07/18 11:11:12 schwarze Exp $ */ /* * Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2010, 2011 Ingo Schwarze <schwarze@openbsd.org> @@ -113,6 +113,7 @@ static const char * const mandocerrs[MANDOCERR_MAX] = { /* related to macros and nesting */ "skipping obsolete macro", "skipping paragraph macro", + "moving paragraph macro out of list", "skipping no-space macro", "blocks badly nested", "child violates parent syntax", |