[mdoc, .xsd] Allow the <returns/> element to contain <c/> elements.
authorJonathan Pryor <jonpryor@vt.edu>
Mon, 24 Sep 2012 16:45:59 +0000 (12:45 -0400)
committerJonathan Pryor <jonpryor@vt.edu>
Mon, 24 Sep 2012 16:48:57 +0000 (12:48 -0400)
It's frequently useful (and accidentally used) to have <c/> within
<returns/> blocks:

<returns>
<c>-1</c> at end of stream; otherwise the number of bytes read.
</returns>

Allow this to validate.

man/mdoc.5
mcs/tools/mdoc/Resources/monodoc-ecma.xsd

index 5d4102da37f07dd710e225ad62d97386ede56382..440fc15a39793c8747007e4fb31ec825cfcd5c0a 100644 (file)
@@ -603,6 +603,8 @@ Describes the return value of a method:
 .fi
 
 The \fIreturns\fR element can contain the following elements:
+\fIc\fR,
+\fIformat\fR,
 \fIlist\fR,
 \fIpara\fR,
 \fIparamref\fR,
index c8aafeddae06f133f9337c579a71139d997e8b56..4529c8a399c14e044d29f0081876982979da26de 100644 (file)
@@ -635,6 +635,7 @@ add masterdoc support?
   <xs:element name="returns">
     <xs:complexType mixed="true">
       <xs:choice minOccurs="0" maxOccurs="unbounded">
+        <xs:element ref="c" />
         <xs:element ref="format" />
         <xs:element ref="geq" />
         <xs:element ref="leq" />