aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2010-12-15 23:44:02 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2010-12-15 23:44:02 +0000
commit55322f2b6bc7563cc1587a7c12f8af8fb9f86913 (patch)
treeab5515e11f024112211e4e236caa7c9c1d026d1e
parent7aa6a9a39d16b4098093e9ce72a8b4c914a174a7 (diff)
downloadmandoc-55322f2b6bc7563cc1587a7c12f8af8fb9f86913.tar.gz
mandoc-55322f2b6bc7563cc1587a7c12f8af8fb9f86913.tar.zst
mandoc-55322f2b6bc7563cc1587a7c12f8af8fb9f86913.zip
Remove `Pp' and `Lp' checks in front-ends to make sure we're not
printing as the first or last child of an `Ss' or `Sh': this is now ensured within the validator.
-rw-r--r--mdoc_html.c7
-rw-r--r--mdoc_term.c7
2 files changed, 2 insertions, 12 deletions
diff --git a/mdoc_html.c b/mdoc_html.c
index 60b13ad1..64419c08 100644
--- a/mdoc_html.c
+++ b/mdoc_html.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc_html.c,v 1.120 2010/12/15 17:19:41 kristaps Exp $ */
+/* $Id: mdoc_html.c,v 1.121 2010/12/15 23:44:02 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -1542,11 +1542,6 @@ static int
mdoc_pp_pre(MDOC_ARGS)
{
- if ((NULL == n->next || NULL == n->prev) &&
- (MDOC_Ss == n->parent->tok ||
- MDOC_Sh == n->parent->tok))
- return(0);
-
print_otag(h, TAG_P, 0, NULL);
return(0);
diff --git a/mdoc_term.c b/mdoc_term.c
index 98b4fa70..a5de4519 100644
--- a/mdoc_term.c
+++ b/mdoc_term.c
@@ -1,4 +1,4 @@
-/* $Id: mdoc_term.c,v 1.197 2010/12/11 14:40:51 schwarze Exp $ */
+/* $Id: mdoc_term.c,v 1.198 2010/12/15 23:44:02 kristaps Exp $ */
/*
* Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010 Ingo Schwarze <schwarze@openbsd.org>
@@ -1815,11 +1815,6 @@ termp_sp_pre(DECL_ARGS)
len = 0;
break;
default:
- assert(n->parent);
- if ((NULL == n->next || NULL == n->prev) &&
- (MDOC_Ss == n->parent->tok ||
- MDOC_Sh == n->parent->tok))
- return(0);
len = 1;
break;
}