Re: [docutils:bugs] #477 Generated man page leads to groff warning "TE macro called with TW register undefined"
"G. Branden Robinson" <[email protected]>
| Newsgroups | gmane.text.docutils.devel |
|---|---|
| Message-ID | <20231112213746.zdsr6j2hyp3i5xtz@illithid> |
Hi Dmitry,
Thanks for looping me in.
At 2023-11-12T18:15:10-0000, Dmitry Shachnev via Docutils-develop wrote:
> Here is a minimal reproducing example:
> ```
> $ cat table.rst
> .. list-table::
>
> * - Foo
> - Bar
> $ rst2man table.rst | MANROFFSEQ='' man -l -Z - >/dev/null
> an.tmac:<standard input>:43: warning: tbl preprocessor failed, or it or soelim was not run; table(s) likely not rendered (TE macro called with TW register undefined)
> ```
>
> According to [this email](https://lists.debian.org/debian-devel/2023/08/msg00220.html), to fix this error, `rst2man` should add this line on top of the generated man page:
>
> '\" t
>
> Cc @branden — I think you are interested in all manpage-related issues.
Yes, that is correct. If you know you are going to be generating a
tbl(1) table, then including
'\" t
at the beginning of the generated man page is important. It tells the
man(1) program to run tbl(1) and ensures that the table will be properly
formatted.
You _could_ just include the `'\" t` unconditionally, since tbl(1) will
not do any damage to a well-formed man page that doesn't use tables, and
the time tbl(1) takes to run has not been noticeable for decades.
I would do whichever is easier.
Regards,
Branden
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEh3PWHWjjDgcrENwa0Z6cfXEmbc4FAmVRRaEACgkQ0Z6cfXEm bc7D5Q//VD7xWotbw5r5E/k0gVRbHMD3Quyit0VN5ApumV+v39lgRVDJ+tGEDj9K WwKZYkBiA0dvq4mFo6n+6cyy7R0BjNBbQdaUfAW57Qa9v0g71pzvLBd9ciU1lgqc n7x9pCbN+Dtnxek9QPoCf61pHYBfN750SKnWslY1S6aQd3bcU3aZlWM0L2to4Pvh ahjuRdd/D+QbihXdJ1iBzXMC0eF7vai5Bduq1h4uOG8TZC172XHb+adZPIkuOzHx fXtI+qCbeUyrjYf4Cxox7w/6bTLuTx4dpt6nlO0hs0ORQzlmUP5ZuklFzhpeZUcK A/piCsY9bTj4pF0dYIhBh+np8ADCqvfFkvUI9y/jhNngaQLjrMvbBqVuJt2F2vr/ xGCFCVUmsX+3FvpBySIfGIjoNXWnShz1IqBWYGCr2XF62TtcrHMEqFqVivPuww/Z jTvYzKUrzST3acyVs5HkstVeYtSFyoO2BLwZsWH7LAcqIWbV6srL8xGGd2I9uSYj Zlc8QizsCex0uv1GdxuiZdIlbuyvG2HaExI1pEr1eMnp/Hh940MoQpqL2+fwXJzD cYKGtyTEx2P6Krk8nVVmfgZ87rVBPayQpjVrAHW7RF9ikZSEnmqjyEiaqP5VcFAO /r1g1w8r5NFNS22rilI5RNo3VVshxo5nRag9nfdxxUcqUCjXBYM= =L1no -----END PGP SIGNATURE-----