From: Kristaps Dzonsons <kristaps@bsd.lv>
To: tech@mdocml.bsd.lv
Subject: Re: HTML output for tbl
Date: Thu, 13 Jan 2011 13:36:43 +0100 [thread overview]
Message-ID: <4D2EF1DB.2020306@bsd.lv> (raw)
In-Reply-To: <20110112215801.GA5059@britannica.bec.de>
> looking at the output for queue(3), there is a rather obvious bug in the
> width output. It repeats the width: xxx for every column, e.g. the third
> column has three width in order. This magically works due to the
> overwrite rules, but is far from pretty. I also wonder if we should use
> min-width and screw IE 6. That and using a single table (not one per
> row) would be enough to give queue(3) a properly formatted table without
> having to go extra wide by switching spacing from ex to em.
Joerg,
This isn't really a bug: it's because tables can be interspersed with
arbitrary macros, so each row should in theory be standalone.
However, I agree that this makes for ugly output, and having just tested
it with SCALE_EM, I think it's best to keep a few bits of state and just
reinitialise the table if broken up by other macros. I'll write this up
when I've a few minutes to myself.
And no, we can't screw IE6.
It just now occurs to me that, since CSS "cascades" atop the HTML, I can
set <COL> pixel-widths as a safe default and let CSS, with its precise
"em" widths, override these values. This will make browsers without CSS
also recognise mandoc -Thtml's tables, whether from tbl(7) or otherwise,
which for now require the style-sheet for stipulating widths.
Thanks,
Kristaps
--
To unsubscribe send an email to tech+unsubscribe@mdocml.bsd.lv
next prev parent reply other threads:[~2011-01-13 12:36 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-12 21:58 Joerg Sonnenberger
2011-01-13 12:36 ` Kristaps Dzonsons [this message]
2011-01-13 12:53 ` Joerg Sonnenberger
2011-01-13 14:30 ` Kristaps Dzonsons
2011-01-13 14:51 ` Joerg Sonnenberger
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=4D2EF1DB.2020306@bsd.lv \
--to=kristaps@bsd.lv \
--cc=tech@mdocml.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).