From: Michael Smith Date: Tue, 19 Jun 2007 16:52:48 +0000 (+0000) Subject: In manpages output, emit warnings for notesources (footnote, etc.) X-Git-Tag: release/1.79.1~6^2~2142 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=37cb341ed1baff2012f74c86f15031b4d955e685;p=docbook-dsssl In manpages output, emit warnings for notesources (footnote, etc.) that have something other than para as a child. The numbered-with-hanging-indent formatting that's used for rendering endnotes in the NOTES section of man pages places some limits/assumptions on how the DocBook source is marked up; namely, for notesources (footnote, annotation, etc.) that can contain block-level children, if the they have a block-level child such as a table or itemizedlist or orderedlist that is the first child of a footnote, we have no way of rendering/indenting its content properly in the endnotes list. Thus, the manpages stylesheet not emits a warning message for that case, and suggests the "fix" (which is to wrap the table or itemizedlist or whatever in a para that has some preferatory text. --- diff --git a/xsl/manpages/endnotes.xsl b/xsl/manpages/endnotes.xsl index 6bafc04c2..3c4e0f678 100644 --- a/xsl/manpages/endnotes.xsl +++ b/xsl/manpages/endnotes.xsl @@ -209,11 +209,110 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + endnote + + + + + + + : + + + Warn + + + + Bad: + + + + + [ + + ] + in source + + + + Note + + + + Has: + + / + + + + + Note + + + + Fix: + + / + para/ + + + + + @@ -252,43 +351,7 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - + @@ -300,7 +363,7 @@ - +