source@mandoc.bsd.lv
 help / color / mirror / Atom feed
From: kristaps@mdocml.bsd.lv
To: source@mdocml.bsd.lv
Subject: mdocml: Consider both `Lp' and `Pp' when stripping prior paragraph
Date: Mon, 27 Sep 2010 07:25:03 -0400 (EDT)	[thread overview]
Message-ID: <201009271125.o8RBP3kt011651@krisdoz.my.domain> (raw)

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

                 reply	other threads:[~2010-09-27 11:25 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=201009271125.o8RBP3kt011651@krisdoz.my.domain \
    --to=kristaps@mdocml.bsd.lv \
    --cc=source@mdocml.bsd.lv \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).