source@mandoc.bsd.lv
 help / color / mirror / Atom feed
From: kristaps@mdocml.bsd.lv
To: source@mdocml.bsd.lv
Subject: mdocml: Make empty sections and parts (SH, SS, RS) only produce a
Date: Tue, 22 Mar 2011 11:30:30 -0400 (EDT)	[thread overview]
Message-ID: <201103221530.p2MFUUec005173@krisdoz.my.domain> (raw)

Log Message:
-----------
Make empty sections and parts (SH, SS, RS) only produce a warning if it
has no children.  Noted by Brad, added to TODO by schwarze@.

Modified Files:
--------------
    mdocml:
        TODO
        index.sgml
        man_validate.c

Revision Data
-------------
Index: TODO
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/TODO,v
retrieving revision 1.93
retrieving revision 1.94
diff -LTODO -LTODO -u -p -r1.93 -r1.94
--- TODO
+++ TODO
@@ -278,10 +278,6 @@
 * error reporting issues
 ************************************************************************
 
-- empty .RS blocks in man(7) should be warnings, not errors,
-  see for example qemu(1);
-  brad@comstyle.com  Sat Mar 19 00:36:56 2011
-
 ************************************************************************
 * performance issues
 ************************************************************************
Index: index.sgml
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/index.sgml,v
retrieving revision 1.108
retrieving revision 1.109
diff -Lindex.sgml -Lindex.sgml -u -p -r1.108 -r1.109
--- index.sgml
+++ index.sgml
@@ -40,7 +40,7 @@
 
 					<P>
 					<SPAN CLASS="nm">mdocml</SPAN> consists of the <A HREF="mandoc.3.html">libmandoc</A> validating
-					compilers and <A HREF="mandoc.1.html">mandoc</A>, which interfaces with the compiler library to format
+					compiler and <A HREF="mandoc.1.html">mandoc</A>, which interfaces with the compiler library to format
 					output for UNIX terminals, XHTML, HTML, PostScript, and PDF.  It is a <A CLASS="external"
 					HREF="http://bsd.lv/">BSD.lv</A> project.  
 					</P>
Index: man_validate.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/man_validate.c,v
retrieving revision 1.66
retrieving revision 1.67
diff -Lman_validate.c -Lman_validate.c -u -p -r1.66 -r1.67
--- man_validate.c
+++ man_validate.c
@@ -323,7 +323,8 @@ check_sec(CHKARGS)
 		man_nmsg(m, n, MANDOCERR_SYNTARGCOUNT);
 		return(0);
 	} else if (MAN_BODY == n->type && 0 == n->nchild)
-		man_nmsg(m, n, MANDOCERR_NOBODY);
+		mandoc_msg(MANDOCERR_ARGCWARN, m->parse, n->line, 
+				n->pos, "want children (have none)");
 
 	return(1);
 }
@@ -334,7 +335,8 @@ check_part(CHKARGS)
 {
 
 	if (MAN_BODY == n->type && 0 == n->nchild)
-		man_nmsg(m, n, MANDOCERR_NOBODY);
+		mandoc_msg(MANDOCERR_ARGCWARN, m->parse, n->line, 
+				n->pos, "want children (have none)");
 
 	return(1);
 }
--
 To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv

                 reply	other threads:[~2011-03-22 15:30 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=201103221530.p2MFUUec005173@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).