Your message dated Mon, 02 Nov 2026 09:34:18 +0000
with message-id <[email protected]>
and subject line Bug#907994: fixed in docx2txt 1.4-6
has caused the Debian Bug report #907994,
regarding docx2txt fails on xml with whitespace in it
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
907994: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=907994
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: docx2txt
Version: 1.4-1
Severity: normal

Subject: docx2txt fails on docx files which contain legitimate whitespace in 
their XML
Package: docx2txt
Version: 1.4-1
Severity: normal

a .docx file is a PKZip container.  each of its elements are XML files.

XML is generally allowed to have whitespace between members, though
most .docx generators do not do so.

consider the attached hello-world.docx.  it works with docx2txt:

    $ docx2txt < hello-world.docx
    Hello world
    $

but a simple script can pretty-print all the files in there, and after that 
conversion, docx2txt dumps something XML-ish instead of text:

    $ cat pretty-print-docx
    #!/bin/bash
    workdir="$(mktemp -d)"
    mkdir -p "$workdir/in" "$workdir/out"
    declare -a files
    files=($( zipinfo -1 "$1" ))
    unzip -q "$1" -d "$workdir/in"
    for x in "${files[@]}"; do
      mkdir -p "$workdir/out/$(dirname "$x")"
      xmllint --pretty 2 --output "$workdir/out/$x" "$workdir/in/$x"
    done
    (cd "$workdir/out" && zip -q - "${files[@]}") > "$(basename "$1" 
.docx).pretty.docx"
    $ ./pretty-print-docx hello-world.docx
    $ docx2txt < hello-world.pretty.docx 
    <?<w:document
        xmlns:o="urn:schemas-microsoft-com:office:office"
        
xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships";
        xmlns:v="urn:schemas-microsoft-com:vml"
        xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main";
        xmlns:w10="urn:schemas-microsoft-com:office:word"
        
xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing";
        
xmlns:wps="http://schemas.microsoft.com/office/word/2010/wordprocessingShape";
        
xmlns:wpg="http://schemas.microsoft.com/office/word/2010/wordprocessingGroup";
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006";
        
xmlns:wp14="http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing";
        xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml";
        mc:Ignorable="w14 wp14"
      ><w:body
        ><w:p
          ><w:pPr
            ><w:pStyle
                w:val="Normal"
            /><w:rPr
            /></w:pPr
          ><w:r
            ><w:rPr
            /><w:t
              >Hello world</w:t
            ></w:r
          ></w:p
        ><w:sectPr
          ><w:type
              w:val="nextPage"
          /><w:pgSz
              w:w="12240"
              w:h="15840"
          /><w:pgMar
              w:left="1134"
              w:right="1134"
              w:header="0"
              w:top="1134"
              w:footer="0"
              w:bottom="1134"
              w:gutter="0"
          /><w:pgNumType
              w:fmt="decimal"
          /><w:formProt
              w:val="false"
          /><w:textDirection
              w:val="lrTb"
          /></w:sectPr
        ></w:body
      ></w:document
    >
    $ 

Note that Libreoffice has no problem with this pretty-printed version.

     --dkg


    

-- System Information:
Debian Release: buster/sid
  APT prefers testing-debug
  APT policy: (500, 'testing-debug'), (500, 'testing'), (500, 'oldstable'), 
(200, 'unstable-debug'), (200, 'unstable'), (1, 'experimental-debug'), (1, 
'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.17.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages docx2txt depends on:
ii  unzip  6.0-21

docx2txt recommends no packages.

docx2txt suggests no packages.

-- no debconf information

-- System Information:
Debian Release: buster/sid
  APT prefers testing-debug
  APT policy: (500, 'testing-debug'), (500, 'testing'), (500, 'oldstable'), 
(200, 'unstable-debug'), (200, 'unstable'), (1, 'experimental-debug'), (1, 
'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.17.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages docx2txt depends on:
ii  unzip  6.0-21

docx2txt recommends no packages.

docx2txt suggests no packages.

-- no debconf information

--- End Message ---
--- Begin Message ---
Source: docx2txt
Source-Version: 1.4-6
Done: Barak A. Pearlmutter <[email protected]>

We believe that the bug you reported is fixed in the latest version of
docx2txt, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Barak A. Pearlmutter <[email protected]> (supplier of updated docx2txt package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Mon, 02 Nov 2026 08:46:20 +0000
Source: docx2txt
Architecture: source
Version: 1.4-6
Distribution: unstable
Urgency: medium
Maintainer: Barak A. Pearlmutter <[email protected]>
Changed-By: Barak A. Pearlmutter <[email protected]>
Closes: 907994 1152844
Changes:
 docx2txt (1.4-6) unstable; urgency=medium
 .
   * Bump to debhelper compat level 14
   * Bump standards version to 4.7.4
   * Security: run unzip without a shell, use 3-arg open, create the STDIN
     temporary file safely, and do not load perl config from the current
     directory (closes: #1152844), thanks to Koyo Keiter for the report
     and initial patch
   * Tolerate insignificant whitespace in docx XML (closes: #907994)
Checksums-Sha1:
 5ad1087c4835c46fa9824936a0398c002937fff5 2112 docx2txt_1.4-6.dsc
 10f4c3b139145eb0e9e98c8cf03e68a09487d85f 6684 docx2txt_1.4-6.debian.tar.xz
 d2fb80f964458a29cdae386c5bc1c954d9c39714 91500 docx2txt_1.4-6.git.tar.xz
 ebd52a2fa02f45d7a0a535bfd0ac3e55e7ab1cd3 17733 docx2txt_1.4-6_source.buildinfo
Checksums-Sha256:
 1310318801116000a6e53004f583f5442e564192c88ab3021a0a56e85752b561 2112 
docx2txt_1.4-6.dsc
 ab2e7191e7fca33ab4424b812a1289e777738c36034b54c64808559ac7558045 6684 
docx2txt_1.4-6.debian.tar.xz
 38f160da41ab48fd600e7f1f3040dc6dd0eebba6d6e9125d5dd815a603259a50 91500 
docx2txt_1.4-6.git.tar.xz
 775fc1bda7d1a86af229dbe0bd30c36bc5c1589f5e6ddf3b16f0438a95e68415 17733 
docx2txt_1.4-6_source.buildinfo
Files:
 5a8a3d8d7963921585568ae7584fc9ea 2112 text optional docx2txt_1.4-6.dsc
 8d42bc970a19916bdc1e6a1ddd9d42e6 6684 text optional 
docx2txt_1.4-6.debian.tar.xz
 ebcbebd3ab54efe7636a754c2c5bd045 91500 text optional docx2txt_1.4-6.git.tar.xz
 66e0a65fd3acc3f08ad312e7f8689c83 17733 text optional 
docx2txt_1.4-6_source.buildinfo
Git-Tag-Info: tag=f8e96ec6ba21ef58748e6384d3e32f804d973d16 
fp=2de4bf05421076c47ad20367c6af2490d3ca72b9
Git-Tag-Tagger: Barak A. Pearlmutter <[email protected]>

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEN02M5NuW6cvUwJcqYG0ITkaDwHkFAmroVoUACgkQYG0ITkaD
wHkDDRAA3Gp/BgDqcbUGVQp2wCWc8XHO8bhm2+5OUdrdIS4qykDz/z0h0qqv8fFb
m3ZyhJyiVybhiBKahO/RDfS5EaBgOO0rqgMxJ76JHNr4UmM+pqnx47vCLiBNxZcq
mT4foALbyXjIMl418NoWgfjnyx4CTnJhkWlgJgbCo8Nz8SeHojUdmt5TRhiYgXwK
L1/xQNMEN0cADBvW0vunt1FY2fMhfVu5botbAlQpskbN0xktOoL1Jq8FSHLuPGBN
Qu8L/i2501u8QPmm+jBDuM6ApnppjQUFsjTEVN+Dpr+3/GrJt2LDahTsXewo8Q8z
1/pAJGx/WE5jzA5uN0QFXN8r/r2Dlt7WA672PLsXufbQ8kvjlN4cL0NyeQLnZq2f
aLuqoMb8CH2YN0twHsIzmGEMxWQqn4+t/yHH9FbBmU4WJjI3xP5GqQgZ6Dqa3r8E
Rj3wggkgwTI0Z6zeD/09sulTzROCk281EWzqrJYoGGb2/DRpxCaZpkA04Dlnz4u5
vWUhYM7ymV9nq69Y5yKyxWp/klxLMyN3HMIkvm25JrgXdQmbzqiaLFY2aryTiOcZ
HbJBkOokiRvQC3CgV2v4/ACgV5MR8nOOtVwvuqn1LbsOejSworC0TiDPddGkIW6G
Oho6xUyKMEpYhNfOUtQizhuRCG6I7YWaW7G/LrkrLLtDybI3Fio=
=GMEO
-----END PGP SIGNATURE-----

Attachment: pgpCVINGk4fWN.pgp
Description: PGP signature


--- End Message ---

Reply via email to