Manpages only recognise HTTP links but not HTTPS links
Bug #1841930 reported by
Dan
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Manpage Repository |
Confirmed
|
Medium
|
Unassigned | ||
w3m |
New
|
Unknown
|
|||
w3m (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
If you compare the last 3 sections between these 2 manual pages:
- https:/
- https:/
The first one has HTTP links for the license, the documentation, and for reporting bugs. While in the second ones, the links use HTTPS.
In the first, it seems that the system is detecting them as links and converting them into HTML <a> elements. While in the second, the links are not detected at all.
Changed in ubuntu-manpage-repository: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
Changed in w3m: | |
status: | Unknown → New |
To post a comment you must log in.
Hey, thanks for the report.
It seems it has become a hobby of mine to come by and fix small issue on the manpages until we can find more time to tackle the longer backlog.
In regard to this your report is absolutely correct and the rendered html file represents that. I compare trusty to noble.
T:
Report numfmt bugs to <a href="mailto:<email address hidden>"><email address hidden></a>
N: /www.gnu. org/software/ coreutils/ >
GNU coreutils online help: <https:/
Sadly this conversion seems to be in perl and I'm not the biggest perl magician.
What I've found looking through the code comes down to this ...
What I've found is that it extracts the deb file to get the man page.
And then throws it into w3mman like:
COLUMNS=100 /usr/lib/ w3m/cgi- bin/w3mman2html .cgi "local= /tmp/testdir/ tmpdir/ usr/share/ man/man1/ numfmt. 1.gz"
On Xenial that has the expected non https content with a href:
""" www.gnu. org/software/ coreutils/">http:// www.gnu. org/software/ coreutils/</a>>
<b>REPORTING</b> <b>BUGS</b>
GNU coreutils online help: <<a href="http://
"""
And the same with the coreutils content of noble with https is /www.gnu. org/software/ coreutils/ >
<b>REPORTING</b> <b>BUGS</b>
GNU coreutils online help: <https:/
"""
So this is at least identifying where it falls apart.