aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libmdoc.h
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2012-07-18 11:11:12 +0000
committerIngo Schwarze <schwarze@openbsd.org>2012-07-18 11:11:12 +0000
commit50e01545158506c75fea9e1828a29ae1b8c911f0 (patch)
tree5aa45bc2432543e3f9c1c56589afa3665d7c21bd /libmdoc.h
parent7a9cc4a7da8d626f4484e36248129567b2bef7f8 (diff)
downloadmandoc-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 'libmdoc.h')
-rw-r--r--libmdoc.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libmdoc.h b/libmdoc.h
index 9d03e084..51847022 100644
--- a/libmdoc.h
+++ b/libmdoc.h
@@ -1,4 +1,4 @@
-/* $Id: libmdoc.h,v 1.79 2012/05/27 17:48:57 schwarze Exp $ */
+/* $Id: libmdoc.h,v 1.80 2012/07/18 11:11:12 schwarze Exp $ */
/*
* Copyright (c) 2008, 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -118,6 +118,7 @@ int mdoc_endbody_alloc(struct mdoc *m, int line, int pos,
enum mdoct tok, struct mdoc_node *body,
enum mdoc_endbody end);
void mdoc_node_delete(struct mdoc *, struct mdoc_node *);
+int mdoc_node_relink(struct mdoc *, struct mdoc_node *);
void mdoc_hash_init(void);
enum mdoct mdoc_hash_find(const char *);
const char *mdoc_a2att(const char *);