From: Carsten Dominik <carsten.dominik@gmail.com>
To: Sebastian Rose <sebastian_rose@gmx.de>
Cc: Org-mode ml <emacs-orgmode@gnu.org>
Subject: Re: Re: Aligning Columns in HTML Export Tables
Date: Sat, 23 Oct 2010 07:42:28 +0200 [thread overview]
Message-ID: <807A8DF2-0297-493B-A364-A7856CD109B2@gmail.com> (raw)
In-Reply-To: <87r5fihvnz.fsf@gmx.de>
On Oct 22, 2010, at 9:30 PM, Sebastian Rose wrote:
> Carsten Dominik <carsten.dominik@gmail.com> writes:
>> On Oct 22, 2010, at 3:59 PM, Sebastian Rose wrote:
>>
>>> Carsten Dominik <carsten.dominik@gmail.com> 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: <td%s>
>>> Closing tag: </td>
>>> State : STANDARD.
>>
>> This does look right.
>>
>>>
>>> Hide Org Export Table Header Tags:
>>> Opening tag: <th scope="%s">
>>> Closing tag: </th>
>>> State : STANDARD.
>>
>> This does not look right, it should be
>>
>> Opening tag: <th scope="%s"%s>
>> Closing tag: </th>
>>
>>
>>>
>>>
>>> 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:
>>
>> -------------------------------------------------------------------------------------------
>> <table border="2" cellspacing="0" cellpadding="6" rules="groups"
>> frame="hsides">
>> <caption></caption>
>> <colgroup><col align="right" /></colgroup><colgroup><col
>> align="left" /
>>> </colgroup><colgroup><col align="left" /></colgroup>
>> <thead>
>> <tr><th scope="col" style="text-align:right">A</th><th scope="col"
>> style="text-align:left">B</th><th scope="col" style="text-
>> align:left">C</th></tr>
>> </thead>
>> <tbody>
>> <tr><td style="text-align:right">1</td><td style="text-
>> align:left">bar</td><td style="text-align:left">text</td></tr>
>> <tr><td style="text-align:right">12</td><td style="text-
>> align:left">test</td><td style="text-align:left">300</td></tr>
>> <tr><td style="text-align:right">9</td><td style="text-
>> align:left">foo</td><td style="text-align:left">4</td></tr>
>> </tbody>
>> </table>
>> -------------------------------------------------------------------------------------------
>>
>>
>> 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:
>
> <colgroup><col align="right" /></colgroup><colgroup><col
> align="left" /></colgroup><colgroup><col align="left" /></colgroup>
>
> must be:
>
> <colgroup><col align="right" /><col align="left" /><col
> align="left" /></colgroup>
>
>
> i.e. "<colgroup>" and "</colgroup>" have to occur only once each and
> wrap the "<col ... />" definitions.
>
> The </colgroup> after each "<col ... />" 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 |
> | / | <l> | <l> | <r> |
>
>
> Wrong:
>
> | | A | B | C |
> |---+----+------+------|
> | | 1 | bar | text |
> | | 12 | test | 300 |
> | | 9 | foo | 4 |
> | / | <> | <> | <> |
>
>
> Thanks for the fix!
>
>
> Sebastian
next prev parent reply other threads:[~2010-10-23 5:42 UTC|newest]
Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-20 16:42 Aligning Columns in HTML Export Tables Jeff Horn
2010-10-20 17:16 ` Bernt Hansen
2010-10-20 19:04 ` Christian Moe
2010-10-20 20:11 ` Jeff Horn
2010-10-21 0:25 ` Sebastian Rose
2010-10-21 7:36 ` Christian Moe
2010-10-21 7:46 ` Carsten Dominik
2010-10-21 13:04 ` Sebastian Rose
2010-10-21 13:25 ` Sebastian Rose
2010-10-22 7:32 ` Carsten Dominik
2010-10-22 11:20 ` Sebastian Rose
2010-10-22 11:27 ` Carsten Dominik
2010-10-22 13:59 ` Sebastian Rose
2010-10-22 15:41 ` Carsten Dominik
2010-10-22 19:30 ` Sebastian Rose
2010-10-23 5:42 ` Carsten Dominik [this message]
2010-10-23 19:03 ` Sebastian Rose
2010-10-22 19:37 ` Sebastian Rose
2010-10-23 5:53 ` Carsten Dominik
2010-10-23 19:20 ` Sebastian Rose
2010-10-23 19:28 ` Sebastian Rose
2010-10-25 6:48 ` Carsten Dominik
2010-10-25 9:02 ` Giovanni Ridolfi
2010-10-25 9:09 ` Carsten Dominik
2010-10-25 4:36 ` Baoqiu Cui
2010-10-25 8:51 ` Christian Moe
2010-10-25 9:08 ` Carsten Dominik
2010-10-25 13:13 ` Christian Moe
2010-10-25 13:22 ` Carsten Dominik
2010-10-25 14:55 ` Sebastian Rose
2010-10-25 20:41 ` Christian Moe
2010-10-25 21:52 ` Baoqiu Cui
2010-10-26 5:11 ` Carsten Dominik
2010-10-26 16:03 ` Baoqiu Cui
2010-10-25 13:43 ` Carsten Dominik
2010-10-25 20:04 ` Christian Moe
2010-10-25 21:39 ` Sebastian Rose
2010-10-26 5:12 ` Carsten Dominik
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=807A8DF2-0297-493B-A364-A7856CD109B2@gmail.com \
--to=carsten.dominik@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=sebastian_rose@gmx.de \
/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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.