* mdocml: Consider both `Lp' and `Pp' when stripping prior paragraph
@ 2010-09-27 11:25 kristaps
0 siblings, 0 replies; only message in thread
From: kristaps @ 2010-09-27 11:25 UTC (permalink / raw)
To: source
Log Message:
-----------
Consider both `Lp' and `Pp' when stripping prior paragraph marks.
Modified Files:
--------------
mdocml:
mdoc_validate.c
Revision Data
-------------
Index: mdoc_validate.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/mdoc_validate.c,v
retrieving revision 1.117
retrieving revision 1.118
diff -Lmdoc_validate.c -Lmdoc_validate.c -u -p -r1.117 -r1.118
--- mdoc_validate.c
+++ mdoc_validate.c
@@ -1473,7 +1473,12 @@ static int
pre_pp(PRE_ARGS)
{
- if (NULL == mdoc->last || MDOC_Pp != mdoc->last->tok)
+ if (NULL == mdoc->last)
+ return(1);
+
+ /* Don't allow prior `Lp' or `Pp'. */
+
+ if (MDOC_Pp != mdoc->last->tok && MDOC_Lp != mdoc->last->tok)
return(1);
if (MDOC_Bl == n->tok && n->data.Bl->comp)
--
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-09-27 11:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-27 11:25 mdocml: Consider both `Lp' and `Pp' when stripping prior paragraph 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).