Your message dated Sun, 29 Dec 2024 06:49:52 +0000
with message-id <[email protected]>
and subject line Bug#1087509: fixed in netpbm-free 2:11.09.02-1
has caused the Debian Bug report #1087509,
regarding netpbm: bullet list in manpages - makeman modified to avoid empty 
lines
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.)


-- 
1087509: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1087509
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: netpbm
Version: 2:11.01.00-2
Severity: minor

Dear Maintainer,

for this report I have checked out 
https://salsa.debian.org/debian-phototools-team/netpbm

The html documentation of netpbm uses bullet lists.
There are two types of lines as below. In the first type of lines the
tag <li> is followed by the text. In the second type the tag and the text
are separated by a newline \n. Both are fine for html.

<ol>
<li>A "magic number" for identifying the file type.
A ppm image's magic number is the two characters "P6".
<li>
Whitespace (blanks, TABs, CRs, LFs).

When converting by makeman the following line applies.
    indoc = re.sub("(?i) *<LI>", r".IP \(bu\n", indoc)
The variable indoc holds the html documentation. The string
"<LI>" is replaced by ".IP \(bu" followed by a newline. The html above
transforms to

.IP \(bu
A "magic number" for identifying the file type.
A ppm image's magic number is the two characters "P6".
.IP \(bu

Whitespace (blanks, TABs, CRs, LFs).

As a result man shows the first line as intended. The second line is
the bullet point with an empty line. The text starts below.

A workaround is proposed as follows.
By changing the indoc line of makeman to
    indoc = re.sub("(?i) *<LI>\n*", r".IP \(bu\n", indoc)
newlines are included in the matching pattern. With the modification the
extra empty line disappears and the html transforms to

.IP \(bu
A "magic number" for identifying the file type.
A ppm image's magic number is the two characters "P6".
.IP \(bu
Whitespace (blanks, TABs, CRs, LFs).

With this change both lines start with the bullet point followed
by the text.

Another approach would be to modify all html documents by replacing
"<LI>\n" by "<LI>". Since the html code itself is fine it might be
better to improve the conversion tool.

A diff which reflects the tiny change is attached to the report.
Please let me know if you need more information, evidence or any
additional activity.

Thank you very much for taking care of the netpbm package!

Kind regards,
Christoph

-- System Information:
Debian Release: 12.8
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.1.0-27-amd64 (SMP w/4 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, 
TAINT_UNSIGNED_MODULE
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages netpbm depends on:
ii  libc6            2.36-9+deb12u9
ii  libjpeg62-turbo  1:2.1.5-2
ii  libnetpbm11      2:11.01.00-2
ii  libpng16-16      1.6.39-2
ii  libtiff6         4.5.0-6+deb12u1
ii  libx11-6         2:1.8.4-2+deb12u2
ii  libxml2          2.9.14+dfsg-1.3~deb12u1
ii  zlib1g           1:1.2.13.dfsg-1

Versions of packages netpbm recommends:
ii  ghostscript  10.0.0~dfsg-11+deb12u6

netpbm suggests no packages.
diff --git a/buildtools/makeman b/buildtools/makeman
index 6e4bb52..d86f5e0 100755
--- a/buildtools/makeman
+++ b/buildtools/makeman
@@ -1,4 +1,4 @@
-#!/usr/bin/python
+#!/usr/bin/python3
 #
 # makeman -- compile netpbm's stereotyped HTML to troff markup
 #
@@ -218,7 +218,7 @@ def makeman(name, file, indoc):
     indoc = re.sub("(?i) *</DD>", "", indoc)
     # Process unordered lists -- just turn them into .TPs
     indoc = re.sub("(?i)</?[UO]L *(COMPACT)?>", "", indoc)
-    indoc = re.sub("(?i) *<LI>", r".IP \(bu\n", indoc)
+    indoc = re.sub("(?i) *<LI>\n*", r".IP \(bu\n", indoc)
     indoc = re.sub("(?i) *</LI>", "", indoc)
     # No-print tags
     indoc = re.sub("<!--no_print-->.*", "", indoc)

--- End Message ---
--- Begin Message ---
Source: netpbm-free
Source-Version: 2:11.09.02-1
Done: Andreas Metzler <[email protected]>

We believe that the bug you reported is fixed in the latest version of
netpbm-free, 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.
Andreas Metzler <[email protected]> (supplier of updated netpbm-free 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: Sun, 29 Dec 2024 07:34:43 +0100
Source: netpbm-free
Architecture: source
Version: 2:11.09.02-1
Distribution: experimental
Urgency: low
Maintainer: Debian PhotoTools Maintainers 
<[email protected]>
Changed-By: Andreas Metzler <[email protected]>
Closes: 1087509
Changes:
 netpbm-free (2:11.09.02-1) experimental; urgency=low
 .
   * New upstream version.
     + Includes makeman fix for avoiding empty lines in unordered lists.
       (Thanks, Christoph Brinkhaus!) Closes: #1087509
Checksums-Sha1: 
 baca93304bbcb061e441becfa58e56895e2e592b 2597 netpbm-free_11.09.02-1.dsc
 9e8dfd009e3308f43770bc02a785da4c9f745dc3 1519728 
netpbm-free_11.09.02.orig-userguide.tar.xz
 c342a30a77ca798f1fdd7cd9b9e3186b414bdc13 2181900 
netpbm-free_11.09.02.orig.tar.xz
 62285a896927398b25daf98911fcadbdd84befb0 34448 
netpbm-free_11.09.02-1.debian.tar.xz
Checksums-Sha256: 
 e41f96386496f1758665c30c9f8443e783aa406f857613b1fa5945e52fccc52b 2597 
netpbm-free_11.09.02-1.dsc
 4b4f7b66a1374d69e7bc3af22a30a9b19abf23e4a199844c15fed5a26544fefb 1519728 
netpbm-free_11.09.02.orig-userguide.tar.xz
 7129cd46af409c0889b6725994a46c15e3b20e64703981b35b2f00c09eed860f 2181900 
netpbm-free_11.09.02.orig.tar.xz
 2defb4095d9dd82d50956cfc33f9da17a8b56061c19a629d4151f0e8577aabbf 34448 
netpbm-free_11.09.02-1.debian.tar.xz
Files: 
 4b9eadfc2273c62a6c0147c303ffb8e1 2597 graphics optional 
netpbm-free_11.09.02-1.dsc
 c88ec8cd6f88d4605fc8660c4a17bbfb 1519728 graphics optional 
netpbm-free_11.09.02.orig-userguide.tar.xz
 e652677f676371a0edd6bdba75d9500f 2181900 graphics optional 
netpbm-free_11.09.02.orig.tar.xz
 d3f8a6b7081a43dff599139c22084829 34448 graphics optional 
netpbm-free_11.09.02-1.debian.tar.xz

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

iQIzBAEBCgAdFiEE0uCSA5741Jbt9PpepU8BhUOCFIQFAmdw7i4ACgkQpU8BhUOC
FIRrmQ/9Hoso03B8JR6/sylGV/IjikHs3z5wog99Kmo8H5ldqkPL3f62/s23twxD
Zdzb59VfUClYW9SY+gpnFjh79QFsL4RHtOPlXK2NGbsjd0IHGQ6JsEXAdMNQYOd1
lj2635R09duB7LGi6rvrm51B2ANHtfwPFk4CPaa8CObmAd65WOkFlGDMiI9Lalu6
sTzKdOc7PT27b6+rHIut+g2zgaPdFM5PSBYuH6ZTNAa8VdbZ/2jefy+R8U0Gfby4
TdY9aPw9CuDAcqMPMp7fQBX7/SEbJ2VCQwuejdqdZ0IUU3EqRKVUV8imyxzkx8Rs
IjQRzWJiW1OYyOY2hzmJd7SMDKY6NPkvo17QdI4BssQqipGbCXVk3NaxvfeMGyOk
Nkja8g9wT7MhwOY3gULviqpDVEU4ZxekqdnLAG+VEl3YD7tP5ZIzkfIjqOWWHVSC
98DvUEBs8zYNKtHuHbWqrJf+yKn0Yfhn+JF8rEA9hAH6A9d6tyQQtdyPw7GI0JdO
ZNKWMeRqo/tm76lMBKwWeKfYLdT46/xDnMQ3xdXUef4T8DzHljFwFPokOQfpJ7Fr
GqlSKTZblYJz2lOzZAqVUFps5srW4w7raGvVhtsNrR2KjpTRJtMxqHWrPvyz83aQ
gZwPV6fpLejG/4ABi1NZa4emiY0/l6lA3+7BZUIymjPRaoCUFWc=
=rrnh
-----END PGP SIGNATURE-----

Attachment: pgpc0jv6sxmDv.pgp
Description: PGP signature


--- End Message ---

Reply via email to