discuss@mandoc.bsd.lv
 help / color / mirror / Atom feed
From: наб <nabijaczleweli@nabijaczleweli.xyz>
To: discuss@mandoc.bsd.lv
Subject: Empty tbl line in -Thtml rendered as <tr></tr>, which is universally 0-sized
Date: Tue, 6 Sep 2022 14:24:12 +0200	[thread overview]
Message-ID: <20220906122412.5noxbtocludm3tn6@tarta.nabijaczleweli.xyz> (raw)

[-- Attachment #1: Type: text/plain, Size: 1220 bytes --]

Hi!

Given:
-- >8 --
.Dd
.Dt STTY 1
.Os
.
.Sh DESCRIPTION
.TS
lb lb .
a	b
c	d

e	f
.TE
-- >8 --

groff (nroff and -Tpdf) and mandoc -Tutf8 agree that this means the
third line is blank:
-- >8 --
STTY(1)                     General Commands Manual                    STTY(1)

D\bDE\bES\bSC\bCR\bRI\bIP\bPT\bTI\bIO\bON\bN
     a\ba   b\bb
     c\bc   d\bd

     e\be   f\bf

Linux 5.10.0-17-amd64                                    Linux 5.10.0-17-amd64
-- >8 --

However, mandoc -Thtml (current HEAD, Debian 1.14.5-1 matches) generates:
-- >8 --
<table class="tbl">
  <tr>
    <td><b>a</b></td>
    <td><b>b</b></td>
  </tr>
  <tr>
    <td><b>c</b></td>
    <td><b>d</b></td>
  </tr>
  <tr>
  </tr>
  <tr>
    <td><b>e</b></td>
    <td><b>f</b></td>
  </tr>
</table>
-- >8 --

Which browsers universally (lynx, Firefox) render as 0-sized,
which yields, effectively, a three-row table.

Adding a \& yields a <tr><td></td></td> (with a <b></b> in this case),
which is better at 1+1px padding from the td,
but also isn't an empty line, and lynx renders it identically.

Having a \ \& does work, I guess, but it injects a space and is a pretty
stinky work-around.

Best,
наб

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

                 reply	other threads:[~2022-09-06 12:24 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220906122412.5noxbtocludm3tn6@tarta.nabijaczleweli.xyz \
    --to=nabijaczleweli@nabijaczleweli.xyz \
    --cc=discuss@mandoc.bsd.lv \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).