summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormstsirkin <mstsirkin@0c8fb4dd-22a2-4bb5-bc14-6c75a5f43652>2013-12-08 22:22:05 +0000
committermstsirkin <mstsirkin@0c8fb4dd-22a2-4bb5-bc14-6c75a5f43652>2013-12-08 22:22:05 +0000
commitff21900ec3242c77cb9a7ee5565309548950364d (patch)
treeb10412fea77815ddec98fe3b7801436149d8a602
parent99d4a38d77630d96c62b71494b38fcd8d975b06a (diff)
virtio-html: add right and left borders for tables
In html version our tables lack vertical separators, that's ugly. Tweak config file for htlatex to add these. htlatex wants to use hr for horizontal separation (presumably for portability?) So add only vertical borders using CSS. Note: pdf version has a dual line after 1st column in each row, I didn't figure out how to make this with htlatex yet. Signed-off-by: Michael S. Tsirkin <mst@redhat.com> git-svn-id: https://tools.oasis-open.org/version-control/svn/virtio@169 0c8fb4dd-22a2-4bb5-bc14-6c75a5f43652
-rw-r--r--virtio-html.cfg4
1 files changed, 2 insertions, 2 deletions
diff --git a/virtio-html.cfg b/virtio-html.cfg
index 0106271..bf4c89b 100644
--- a/virtio-html.cfg
+++ b/virtio-html.cfg
@@ -10,9 +10,9 @@
\Configure{appendix}{}{}{\ShowPar\IgnoreIndent\HCode{<h2 class="appendixHead">}\begingroup\TitleMark.\space}{\endgroup\HCode{</h2>}\par\IgnorePar}
\Configure{tabular}
- {\HCode{<table>}}{\HCode{</table>}}
+ {\HCode{<table style="border-collapse:collapse;">}}{\HCode{</table>}}
{\HCode{<tr class="row-\HRow">}}{\HCode{</tr>}}
- {\HCode{<td style="text-align: left; min-width: \HColWidth" \ifnum \HMultispan>1 colspan="\HMultispan"\fi >}}{\HCode{</td>}}
+ {\HCode{<td style="text-align: left; min-width: \HColWidth; border-left-style:solid; border-right-style:solid; border-width:thin; padding-left:6pt; padding-right:6pt;" \ifnum \HMultispan>1 colspan="\HMultispan"\fi >}}{\HCode{</td>}}
%%\Configure{HColWidth}{\HCode{ style="min-width:\HColWidth"}}