Debian Bug report logs - #901181
mupdf-tools: exporting to xml drops newlines

version graph

Package: mupdf-tools; Maintainer for mupdf-tools is Kan-Ru Chen (陳侃如) <[email protected]>; Source for mupdf-tools is src:mupdf (PTS, buildd, popcon).

Reported by: Samuel Thibault <[email protected]>

Date: Sat, 9 Jun 2018 21:00:01 UTC

Severity: normal

Found in version mupdf/1.13.0+ds1-1

Reply or subscribe to this bug.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to [email protected], Kan-Ru Chen (陳侃如) <[email protected]>:
Bug#901181; Package mupdf-tools. (Sat, 09 Jun 2018 21:00:04 GMT) (full text, mbox, link).


Acknowledgement sent to Samuel Thibault <[email protected]>:
New Bug report received and forwarded. Copy sent to Kan-Ru Chen (陳侃如) <[email protected]>. (Sat, 09 Jun 2018 21:00:04 GMT) (full text, mbox, link).


Message #5 received at [email protected] (full text, mbox, reply):

From: Samuel Thibault <[email protected]>
To: Debian Bug Tracking System <[email protected]>
Subject: mupdf-tools: exporting to xml drops newlines
Date: Sat, 9 Jun 2018 18:39:09 +0300
[Message part 1 (text/plain, inline)]
Package: mupdf-tools
Version: 1.13.0+ds1-1
Severity: normal

Hello,

I wanted to use mutool to export a pdf to xhtml and keep the document
structure, but the xhtml output drops newlines.

See for instance the attached file, mutool draw -o test.txt ~/test.pdf   
produces:

1
foo

two words
apart

1


2
foobar

several words again
apart again

2



but mutool draw -o test.xhtml ~/test.pdf produces:

...

<div>
<p><b>1foo</b></p>
<p>two wordsapart</p>
<p>1</p>
</div>
<div>
<p><b>2foobar</b></p>
<p>several words againapart again</p>
<p>2</p>
</div>


Samuel

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

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

Versions of packages mupdf-tools depends on:
ii  libc6            2.27-3
ii  libfreetype6     2.8.1-2
ii  libharfbuzz0b    1.7.6-1+b1
ii  libjbig2dec0     0.14-1
ii  libjpeg62-turbo  1:1.5.2-2+b1
ii  libopenjp2-7     2.3.0-1
ii  libssl1.1        1.1.0h-4
ii  zlib1g           1:1.2.11.dfsg-1

mupdf-tools recommends no packages.

mupdf-tools suggests no packages.

-- no debconf information

-- 
Samuel
<k> faut en profiter, aujourd'hui, les blagues bidon sont à 100 dollars
 -+- #sos-bourse -+-
[test.pdf (application/pdf, attachment)]

Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Thu May 15 19:13:29 2025; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.