From 43ecb3c86c8770ae2606dc0f64aa316a35bc8adf Mon Sep 17 00:00:00 2001 From: Andreas Roussos Date: Tue, 11 Oct 2022 08:41:15 +0200 Subject: [PATCH] Bug 27315: use the namespace-aware docbook stylesheet When viewing the man page for the `koha-list` command, the output does not appear correctly: there appears to be a "staircase"-like effect on the text. The same is true for all other man pages. The source XML files for our man pages have the following namespace declaration at the top: xmlns='http://docbook.org/ns/docbook', which means they are DocBook V5.0 documents and should be processed by namespace-aware DocBook XSL stylesheets. This patch fixes that by using the DocBook-to-man-page transformation stylesheet from the docbook-xsl-ns package (note the "-ns" suffix). Test plan: 1) Apply the patch 2) Build and install new package 3) Confirm the man pages display correctly Signed-off-by: David Nind Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi --- debian/control.in | 2 +- debian/rules | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/debian/control.in b/debian/control.in index e1efe67d3a..2b2b206748 100644 --- a/debian/control.in +++ b/debian/control.in @@ -10,7 +10,7 @@ Standards-Version: 3.8.4 # See debian/rules, the override_dh_gencontrol rules. # There are some exceptions. Build-Depends:__AUTODEPENDS__, - debhelper (>= 7.0.50), gettext, xsltproc, docbook-xsl, fonts-dejavu | ttf-dejavu, + debhelper (>= 7.0.50), gettext, xsltproc, docbook-xsl, docbook-xsl-ns, fonts-dejavu | ttf-dejavu, libxml2-utils, bash-completion, perl-modules-5.26 | libtest-simple-perl (>= 1.302073) Package: koha-common diff --git a/debian/rules b/debian/rules index ac84e14219..211649ad1d 100755 --- a/debian/rules +++ b/debian/rules @@ -40,7 +40,7 @@ override_dh_auto_install: mkdir -p $(TMP)/debian/tmp_docbook xt/verify-debian-docbook.t xsltproc --output $(TMP)/debian/tmp_docbook/ \ - /usr/share/xml/docbook/stylesheet/docbook-xsl/manpages/docbook.xsl \ + /usr/share/xml/docbook/stylesheet/docbook-xsl-ns/manpages/docbook.xsl \ debian/docs/*.xml override_dh_compress: -- 2.39.5