* mdocml: Remove `Pp' and `Lp' checks in front-ends to make sure we're not
@ 2010-12-15 23:44 kristaps
0 siblings, 0 replies; only message in thread
From: kristaps @ 2010-12-15 23:44 UTC (permalink / raw)
To: source
Log Message:
-----------
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.
Modified Files:
--------------
mdocml:
mdoc_html.c
mdoc_term.c
Revision Data
-------------
Index: mdoc_html.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/mdoc_html.c,v
retrieving revision 1.120
retrieving revision 1.121
diff -Lmdoc_html.c -Lmdoc_html.c -u -p -r1.120 -r1.121
--- mdoc_html.c
+++ 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);
Index: mdoc_term.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/mdoc_term.c,v
retrieving revision 1.197
retrieving revision 1.198
diff -Lmdoc_term.c -Lmdoc_term.c -u -p -r1.197 -r1.198
--- mdoc_term.c
+++ 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;
}
--
To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-12-15 23:44 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-15 23:44 mdocml: Remove `Pp' and `Lp' checks in front-ends to make sure we're not kristaps
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).