source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* mdocml: Make empty sections and parts (SH, SS, RS) only produce a
@ 2011-03-22 15:30 kristaps
  0 siblings, 0 replies; only message in thread
From: kristaps @ 2011-03-22 15:30 UTC (permalink / raw)
  To: source

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-03-22 15:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-22 15:30 mdocml: Make empty sections and parts (SH, SS, RS) only produce a 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).