From 37cb341ed1baff2012f74c86f15031b4d955e685 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Tue, 19 Jun 2007 16:52:48 +0000 Subject: [PATCH] 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. --- xsl/manpages/endnotes.xsl | 139 +++++++++++++++++++++++++++----------- 1 file changed, 101 insertions(+), 38 deletions(-) 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 @@ - + -- 2.40.0