[xml/sgml-pkgs] Bug#353829: xmlto: cannot cope with spaces in filenames

MeDon xmedeko at gmail.com
Tue Feb 21 09:54:00 UTC 2006


Package: xmlto
Version: 0.0.18-5
Followup-For: Bug #353829

Hi,

I've found that /usr/share/xmlto/format/docbook/txt also belongs to xmlto
:-) So here's a patch to fix it. Now it works well. (Maybe other conversions
:-) should be modified as well, I've not check them).

--- /usr/share/xmlto/format/docbook/txt.orig    2006-02-21 10:47:15.169456896 +0100
+++ /usr/share/xmlto/format/docbook/txt 2006-02-21 10:49:17.125916696 +0100
@@ -1,3 +1,5 @@
+#! /bin/bash
+
 if [ -x /usr/bin/w3m ]
 then
   CONVERT=/usr/bin/w3m
@@ -28,7 +30,7 @@
   then
     echo >&2 "Convert HTML to ASCII"
   fi
-  ${CONVERT} ${ARGS} ${POSTARGS} ${XSLT_PROCESSED} > \
-   "$OUTPUT_DIR/$(basename ${XSLT_PROCESSED%.*}).txt"
+  ${CONVERT} ${ARGS} ${POSTARGS} "${XSLT_PROCESSED}" > \
+   "$OUTPUT_DIR/$(basename "${XSLT_PROCESSED%.*}").txt"
   ;;
 esac


-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.6.8-2-686
Locale: LANG=cs_CZ, LC_CTYPE=cs_CZ (charmap=ISO-8859-2)

Versions of packages xmlto depends on:
ii  debianutils                 2.8.4        Miscellaneous utilities specific t
ii  docbook-xml                 4.3-1.1      standard XML documentation system,
ii  docbook-xsl                 1.68.1-0.1   stylesheets for processing DocBook
ii  libc6                       2.3.2.ds1-22 GNU C Library: Shared libraries an
ii  libpaper-utils              1.1.14-3     Library for handling paper charact
ii  libxml2-utils               2.6.16-7     XML utilities
ii  sgml-base                   1.26         SGML infrastructure and SGML catal
ii  xsltproc                    1.1.12-8     XSLT command line processor

-- no debconf information




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