From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Re: Aligning Columns in HTML Export Tables Date: Sat, 23 Oct 2010 07:42:28 +0200 Message-ID: <807A8DF2-0297-493B-A364-A7856CD109B2@gmail.com> References: <878w1svl7y.fsf@gollum.intra.norang.ca> <53D6BE6F-C152-45DE-B01B-89D50B4848BC@gmail.com> <87iq0u5v9v.fsf@gmx.de> <87mxq6jpkr.fsf@gmx.de> <87r5fihvnz.fsf@gmx.de> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=52018 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P9WsF-00012m-Ez for emacs-orgmode@gnu.org; Sat, 23 Oct 2010 01:42:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P9WsD-00015s-0s for emacs-orgmode@gnu.org; Sat, 23 Oct 2010 01:42:35 -0400 Received: from mail-ey0-f169.google.com ([209.85.215.169]:63228) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P9WsC-00015c-OE for emacs-orgmode@gnu.org; Sat, 23 Oct 2010 01:42:32 -0400 Received: by eydd26 with SMTP id d26so842966eyd.0 for ; Fri, 22 Oct 2010 22:42:31 -0700 (PDT) In-Reply-To: <87r5fihvnz.fsf@gmx.de> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Sebastian Rose Cc: Org-mode ml On Oct 22, 2010, at 9:30 PM, Sebastian Rose wrote: > Carsten Dominik writes: >> On Oct 22, 2010, at 3:59 PM, Sebastian Rose wrote: >> >>> Carsten Dominik writes: >>>> Hi Sebastian, >>>> >>>> my guess would be that you have customized the td and th tags? >>>> If yes, >>>> please >>>> reset the customization, you need the new default values (which >>>> you then can >>>> still modify). >>>> >>>> Please check the variables org-export-table-header-tags and >>>> org-export-table-data-tags. >>> >>> >>> I've checked them, but they are not customized: >>> >>> Hide Org Export Table Data Tags: >>> Opening tag: >>> Closing tag: >>> State : STANDARD. >> >> This does look right. >> >>> >>> Hide Org Export Table Header Tags: >>> Opening tag: >>> Closing tag: >>> State : STANDARD. >> >> This does not look right, it should be >> >> Opening tag: >> Closing tag: >> >> >>> >>> >>> The export of the OPs table works as expected. But the table I've >>> sent >>> is different in that it just uses empty `<>' marks for grouping and >>> creating lines. >> >> While I do not think it is particularly nice that you >> try to fool the parser in this way :-/ >> it actually behaves quite well :-D >> >> Here is what I get when I export this table: >> >> ------------------------------------------------------------------------------------------- >> > frame="hsides"> >> >> > align="left" / >>> >> >> >> >> >> >> >> >> >>
A> style="text-align:left">BC
1bartext
12test300
9foo4
>> ------------------------------------------------------------------------------------------- >> >> >> The left/right comes from the analysis of the number of numbers >> in each column... >> >> So I must assume that maybe some of your files did not >> update correctly or you have some old compiled files... ? > > > OK, found it. It was in my .emacs which I didn't use for ages... > > But: > > align="left" /> > > must be: > > align="left" /> > > > i.e. "" and "" have to occur only once each and > wrap the "" definitions. > > The after each "" happens only for the second > table. Hi Sebastian, Are you sure about this? Because the <> is special syntax for Org to define column groups, and I believe it is OK to have multiple column groups in a table. - Carsten > > > Correct: > > | | A | B | C | > |---+-----+------+------| > | | 1 | bar | text | > | | 12 | test | 300 | > | | 9 | foo | 4 | > | / | | | | > > > Wrong: > > | | A | B | C | > |---+----+------+------| > | | 1 | bar | text | > | | 12 | test | 300 | > | | 9 | foo | 4 | > | / | <> | <> | <> | > > > Thanks for the fix! > > > Sebastian