From mboxrd@z Thu Jan 1 00:00:00 1970 From: Shiyuan Subject: Re: org-table: missing vertical boundary when exported Date: Tue, 12 Aug 2014 21:46:25 -0700 Message-ID: References: <425643e10ffe7568a26049ef408851dd@mail.rickster.com> <20140811175826.GA67199@eyeBook> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c37e4c762afb05007b7802 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40298) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XHQSC-0007sT-DY for emacs-orgmode@gnu.org; Wed, 13 Aug 2014 00:46:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XHQSB-0001UR-8e for emacs-orgmode@gnu.org; Wed, 13 Aug 2014 00:46:28 -0400 Received: from mail-we0-x22d.google.com ([2a00:1450:400c:c03::22d]:52898) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XHQSA-0001UN-Td for emacs-orgmode@gnu.org; Wed, 13 Aug 2014 00:46:27 -0400 Received: by mail-we0-f173.google.com with SMTP id q58so10879497wes.4 for ; Tue, 12 Aug 2014 21:46:25 -0700 (PDT) In-Reply-To: <20140811175826.GA67199@eyeBook> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Shiyuan , "emacs-orgmode@gnu.org" --001a11c37e4c762afb05007b7802 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Rick, Do you mean that and
don't mean the same thing? Their names suggest they do the same things. That's a terrible naming. Changing the former to the latter does fix the problem though. Why is that? Using the #+HTML_HEAD_EXTRA options as you suggest can also fix the problem. But could you explain why using the HTML_HEAD_EXTRA is more advisable than setting the
directly as table attributes? What would you suggest if we want some tables have orders and others don't have borders in the same html webpage? Thank you. Shiyuan > Org mode generated this line in the html for table but the border is > not > > displayed,=C3=82 > >
> frame=3D"hsides"> > > The "border" attribute has nothing to do with it. It's the "frame" > attribute > which sets the default top and bottom borders. > > > If we use css style to specify the border, =C3=82 the table border w= ould > show > > up:=C3=82 > >
rules=3D"groups" > > frame=3D"hsides"> > > No. The CSS should be in the header, not an attribute of the tag. Have yo= u > tried setting the 'HTML_HEAD_EXTRA' option? somehting like: > #+HTML_HEAD_EXTRA: > > > rick > --001a11c37e4c762afb05007b7802 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Rick,=C2=A0
=C2=A0 =C2=A0Do you mean that=C2=A0=C2=A0&= lt;table border=3D"2"> and <table style=3D"border:2px&= quot;> don't mean the same thing? Their names suggest they do the sa= me things. That's a terrible naming. Changing the former to the latter = does fix the problem though. Why is that?=C2=A0
=C2=A0 =C2=A0 =C2=A0
Using the #+HTML_HEAD_EXTRA options as = you suggest can also fix the problem. But could you explain why using the H= TML_HEAD_EXTRA is more advisable than setting the <table style=3D"b= order:2px"> directly as table attributes? What would you suggest if= we want some tables have orders and others don't have borders in the s= ame html webpage?=C2=A0

Thank you.=C2=A0

Shiyuan= =C2=A0


> =C2=A0 =C2=A0Org mode generated this line in the html for table b= ut the border is not
> =C2=A0 =C2=A0displayed,=C3=82
> =C2=A0 =C2=A0<table border=3D"2" cellspacing=3D"= ;0" cellpadding=3D"6" rules=3D"groups"
> =C2=A0 =C2=A0frame=3D"hsides">

The "border" attribute has nothing to do with it. It's = the "frame" attribute
which sets the default top and bottom borders.
=C2=A0<= /div>
> =C2=A0 =C2=A0If we use css style to specify the border, =C3=82 the tab= le border would show
> =C2=A0 =C2=A0up:=C3=82
> =C2=A0 =C2=A0<table style=3D"border:2px" cellspacing= =3D"0" cellpadding=3D"6" rules=3D"groups"
> =C2=A0 =C2=A0frame=3D"hsides">

No. The CSS should be in the header, not an attribute of the tag. Hav= e you
tried setting the 'HTML_HEAD_EXTRA' option? =C2=A0somehting like: #+HTML_HEAD_EXTRA: <style type=3D"text/css">
#+HTML_HEAD= _EXTRA: table {border-left: 1px solid black; border-right: 1px solid black;= }
#+HTML_HEAD_EXTRA: </style>

rick

--001a11c37e4c762afb05007b7802--