[xml/sgml-commit] r995 - in /packages/docbook2x/trunk/debian: changelog patches/00list patches/05_fix_439214_error_on_missing_refentry.dpatch

dleidert-guest at users.alioth.debian.org dleidert-guest at users.alioth.debian.org
Tue Feb 5 02:44:00 UTC 2008


Author: dleidert-guest
Date: Tue Feb  5 02:44:00 2008
New Revision: 995

URL: http://svn.debian.org/wsvn/debian-xml-sgml/?sc=1&rev=995
Log:
* debian/patches/05_fix_439214_error_on_missing_refentry.dpatch: Added.
  - xslt/man/docbook.xsl: Print a warning if no refentry element can be
    found.
* debian/patches/00list: Adjusted.

Added:
    packages/docbook2x/trunk/debian/patches/05_fix_439214_error_on_missing_refentry.dpatch   (with props)
Modified:
    packages/docbook2x/trunk/debian/changelog
    packages/docbook2x/trunk/debian/patches/00list

Modified: packages/docbook2x/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/debian-xml-sgml/packages/docbook2x/trunk/debian/changelog?rev=995&op=diff
==============================================================================
--- packages/docbook2x/trunk/debian/changelog (original)
+++ packages/docbook2x/trunk/debian/changelog Tue Feb  5 02:44:00 2008
@@ -8,6 +8,10 @@
   * debian/copyright: Fixed typo. Thanks to lintian.
   * debian/docbook2x.doc-base (Document): Fixed uppercase letter. Thanks to
     lintian.
+  * debian/patches/05_fix_439214_error_on_missing_refentry.dpatch: Added.
+    - xslt/man/docbook.xsl: Print a warning if no refentry element can be
+      found.
+  * debian/patches/00list: Adjusted.
 
  -- Daniel Leidert (dale) <daniel.leidert at wgdd.de>  Tue, 27 Nov 2007 00:01:06 +0000
 

Modified: packages/docbook2x/trunk/debian/patches/00list
URL: http://svn.debian.org/wsvn/debian-xml-sgml/packages/docbook2x/trunk/debian/patches/00list?rev=995&op=diff
==============================================================================
--- packages/docbook2x/trunk/debian/patches/00list (original)
+++ packages/docbook2x/trunk/debian/patches/00list Tue Feb  5 02:44:00 2008
@@ -2,3 +2,4 @@
 02_fix_418703_dont_use_abbreviated_sfnet_address
 03_fix_420153_filename_whitespace_handling
 04_fix_442782_preprocessor_declaration_syntax
+05_fix_439214_error_on_missing_refentry

Added: packages/docbook2x/trunk/debian/patches/05_fix_439214_error_on_missing_refentry.dpatch
URL: http://svn.debian.org/wsvn/debian-xml-sgml/packages/docbook2x/trunk/debian/patches/05_fix_439214_error_on_missing_refentry.dpatch?rev=995&op=file
==============================================================================
--- packages/docbook2x/trunk/debian/patches/05_fix_439214_error_on_missing_refentry.dpatch (added)
+++ packages/docbook2x/trunk/debian/patches/05_fix_439214_error_on_missing_refentry.dpatch Tue Feb  5 02:44:00 2008
@@ -1,0 +1,33 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 05_fix_439214_error_on_missing_refentry.dpatch by Daniel Leidert <daniel.leidert at wgdd.de>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: If there is no refentry element, the manpage stylesheets silently
+## DP:   "ignores" this. It has been requested to print at least a
+## DP:   warning.
+## DP:
+## DP: <URL:http://bugs.debian.org/439214>
+## DP: <URL:http://lists.gnu.org/archive/html/groff/2007-11/msg00023.html>
+
+ at DPATCH@
+diff -urNad trunk~/xslt/man/docbook.xsl trunk/xslt/man/docbook.xsl
+--- trunk~/xslt/man/docbook.xsl	2006-04-11 21:00:19.000000000 +0200
++++ trunk/xslt/man/docbook.xsl	2008-02-05 03:31:48.000000000 +0100
+@@ -111,11 +111,15 @@
+     <xsl:when test="child::refentry">
+       <xsl:apply-templates />
+     </xsl:when>
+-
+-    <xsl:otherwise>
++    <xsl:when test="descendant-or-self::refentry">
+       <manpageset>
+         <xsl:apply-templates select="descendant-or-self::refentry" />
+       </manpageset>
++    </xsl:when>
++    <xsl:otherwise>
++      <xsl:message terminate="no">
++        <xsl:text>WARNING: Sorry, but I cannot find a refentry element in your source!</xsl:text>
++      </xsl:message>
+     </xsl:otherwise>
+   </xsl:choose>
+ </xsl:template>

Propchange: packages/docbook2x/trunk/debian/patches/05_fix_439214_error_on_missing_refentry.dpatch
------------------------------------------------------------------------------
    svn:executable = *




More information about the debian-xml-sgml-commit mailing list