* Jakub Wilk <jw...@jwilk.net>, 2022-09-02 20:13:
Consider the following man page source:
$ cat IP-UR.man
.TH
.IP 1. 4
.UR https://bar.example
.UE
For this file, "groff -man -Thtml" produces a malformed table:
$ groff -man -Thtml IP-UR.man | grep . | grep example -B2
<td width="3%">
<p>1.</p></td>
<td width="3%"></td>
<p><a href="https://bar.example">https://bar.example</a></p> </td>
Note that the paragraph containing the link is not inside any <td>.
As a consequence, browsers render the link in the wrong place.
(Ideas for work-arounds are welcome.)
I have no idea what I'm doing, but something like this works:
.de htmlonly
.if '\*(.T'html' \\$1
..
.TH
.IP 1. 4
.UR https://bar.example
.htmlonly https://bar.example
.UE
--
Jakub Wilk