Package: release.debian.org Severity: normal User: release.debian....@packages.debian.org Usertags: unblock
Please unblock package dblatex While working on the stretch version of the Debian Handbook, I recently discovered a regression in the way dblatex renders some inline elements (<code> and <literal> among others). I filed this as #862332 and with the maintainer we uploaded a fix to sid. Please let it migrate to stretch so that we don't lose spaces when using stretch's dblatex... unblock dblatex/0.3.9-2 Debdiff is here: diff -Nru dblatex-0.3.9/debian/changelog dblatex-0.3.9/debian/changelog --- dblatex-0.3.9/debian/changelog 2016-10-11 08:58:13.000000000 +0200 +++ dblatex-0.3.9/debian/changelog 2017-05-16 20:42:07.000000000 +0200 @@ -1,3 +1,11 @@ +dblatex (0.3.9-2) unstable; urgency=low + + * 20_preserve_spaces.patch: + Preserve spaces in <code> and <literal> elements. + Thanks to Raphaël Hertzog for reporting and for his patch. Closes: #862332 + + -- Andreas Hoenen <andr...@hoenen-terstappen.de> Tue, 16 May 2017 20:42:07 +0200 + dblatex (0.3.9-1) unstable; urgency=low * New upstream release diff -Nru dblatex-0.3.9/debian/patches/10_dblatex_version.patch dblatex-0.3.9/debian/patches/10_dblatex_version.patch --- dblatex-0.3.9/debian/patches/10_dblatex_version.patch 2016-10-08 10:04:59.000000000 +0200 +++ dblatex-0.3.9/debian/patches/10_dblatex_version.patch 2017-05-16 17:48:08.000000000 +0200 @@ -8,6 +8,6 @@ ############################################################################ --> -<xsl:variable name="version">0.3.9</xsl:variable> -+<xsl:variable name="version">0.3.9-1</xsl:variable> ++<xsl:variable name="version">0.3.9-2</xsl:variable> </xsl:stylesheet> diff -Nru dblatex-0.3.9/debian/patches/20_preserve_spaces.patch dblatex-0.3.9/debian/patches/20_preserve_spaces.patch --- dblatex-0.3.9/debian/patches/20_preserve_spaces.patch 1970-01-01 01:00:00.000000000 +0100 +++ dblatex-0.3.9/debian/patches/20_preserve_spaces.patch 2017-05-16 17:52:59.000000000 +0200 @@ -0,0 +1,14 @@ +Author: Raphaël Hertzog <hert...@debian.org> +Description: Hotfix for BTS report #862332: +Preserve spaces in <code> and <literal> elements. +--- a/lib/dbtexmf/dblatex/texhyphen.py ++++ b/lib/dbtexmf/dblatex/texhyphen.py +@@ -49,7 +49,7 @@ + existing latex styles. + """ + def __init__(self, codec=None, +- h_sep="\penalty0 ", h_char="\penalty5000 ", ++ h_sep="\penalty0{}", h_char="\penalty5000{}", + h_start=3, h_stop=3): + self.codec = codec + self.seps = r":/\@=?#;-." diff -Nru dblatex-0.3.9/debian/patches/series dblatex-0.3.9/debian/patches/series --- dblatex-0.3.9/debian/patches/series 2016-10-09 18:43:00.000000000 +0200 +++ dblatex-0.3.9/debian/patches/series 2017-05-16 17:49:11.000000000 +0200 @@ -4,3 +4,4 @@ 20_subtitle_handling.patch 20_db2latex_title_page.patch 20_xmultirow.patch +20_preserve_spaces.patch -- System Information: Debian Release: 9.0 APT prefers unstable APT policy: (500, 'unstable'), (500, 'stable'), (500, 'oldstable'), (1, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.9.0-2-amd64 (SMP w/4 CPU cores) Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system)