OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

virtio message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: [PATCH 2/2] 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>
 virtio-html.cfg | 4 ++--
 1 file 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}
-		{\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"}}

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]