summaryrefslogtreecommitdiffstats
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
commit2839585ee67cd98d7251f8bd59de30af7729296a (patch)
tree475e6046877e00bf3bc052c3d8672bb27b5cdad1
parentc4788e9b021a0c7106d8aeb617d236222ebe19b6 (diff)
downloadmandoc-2839585ee67cd98d7251f8bd59de30af7729296a.tar.gz
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.c5
-rw-r--r--mdoc_term.c5
2 files changed, 0 insertions, 10 deletions
diff --git a/mdoc_html.c b/mdoc_html.c
index b24414f0..ddc04a59 100644
--- a/mdoc_html.c
+++ b/mdoc_html.c
@@ -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 ad2b3ab3..820db16e 100644
--- a/mdoc_term.c
+++ b/mdoc_term.c
@@ -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;
}