From: Srinivas <sp_us@yahoo.com>
To: emacs-orgmode@gnu.org
Subject: Re: row and col spaning in table?
Date: Tue, 17 Aug 2010 23:51:14 +0000 (UTC) [thread overview]
Message-ID: <loom.20100818T015102-6@post.gmane.org> (raw)
In-Reply-To: AC5A630A-7124-41C8-9F6F-4652A95AD4E3@gmail.com
Carsten,
As a follow up to Tak's response, this points to a potential bug in org-mode
when converting tables from org-mode table to table.el table:
* Org Mode Table
| Header 1 | Header 2 |
| R1 C1-2 |
| R2 C1 | R2-3 C2 |
| R3 C1 | |
* Org Mode Table converted to table.el table using C-c ~
+----------+----------+
| Header 1 | Header 2 |
+----------+----------+
| R1 C1-2 |
+---------------------+
| R2 C1 | R2-3 C2 |
+----------+----------+
| R3 C1 | |
+----------+----------+
The second table is a result of hitting C-c ~ on the first table. Notice there
is no '+' at the intersection at R1 C1-2, R2 C1 and R2-3 C2
It should be:
+----------+----------+
| R1 C1-2 |
+----------+----------+
| R2 C1 | R2-3 C2 |
+----------+----------+
| R3 C1 | |
+----------+----------+
Even after fixing the '+', the output is not the same as the one produced by
table.el. Since I don't know quite how to debug in Emacs, I can only go by the
produced output.
Table.el produces the following for the corrected table:
Input:
+----------+----------+
| Header 1 | Header 2 |
+----------+----------+
| R1 C1-2 |
+----------+----------+
| R2 C1 | R2-3 C2 |
+----------+ |
| R3 C1 | |
+----------+----------+
Table.el - table-generate-source (html) output:
<table border="1">
<caption>Table</caption>
<tr>
<td align="center" valign="top">
Header 1
</td>
<td align="center" valign="top">
Header 2
</td>
</tr>
<tr>
<td colspan="2" align="left" valign="top">
R1 C1-2
</td>
</tr>
<tr>
<td align="left" valign="top">
R2 C1
</td>
<td rowspan="2" align="center" valign="top">
R2-3 C2 <br />
<br />
</td>
</tr>
<tr>
<td align="left" valign="top">
R3 C1
</td>
</tr>
</table>
Orgmode output:
<table border="2" cellspacing="0" cellpadding="6" rules="groups" frame="hsides">
<tr><th scope="col">Header 1</th>
<th scope="col">Header 2</th></tr>
<tr><td>R1 C1-2</td></tr>
<tr><td>R2 C1<br/>R3 C1</td>
<td>R2-3 C2<br/></td></tr>
</table>
I know this is probably not a high priority issue/bug but I am posting the
information here for completeness.
Thanks again for you all your feedback.
- Srinivas
next prev parent reply other threads:[~2010-08-17 23:51 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-26 11:55 row and col spaning in table? David Hajage
2010-07-28 7:22 ` Giovanni Ridolfi
2010-07-28 18:28 ` Srinivas
2010-08-16 12:45 ` Carsten Dominik
2010-08-16 21:24 ` Tak Ota
2010-08-17 5:01 ` Carsten Dominik
2010-08-17 23:51 ` Srinivas [this message]
2010-08-18 7:32 ` Christian Moe
2010-08-18 7:58 ` David Hajage
2010-08-20 14:08 ` Carsten Dominik
2010-08-20 14:24 ` Christian Moe
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=loom.20100818T015102-6@post.gmane.org \
--to=sp_us@yahoo.com \
--cc=emacs-orgmode@gnu.org \
/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.