emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* [BUG]  export of table.el tables
@ 2010-12-19 14:07 Jambunathan K
  2011-01-09 13:42 ` David Maus
  0 siblings, 1 reply; 3+ messages in thread
From: Jambunathan K @ 2010-12-19 14:07 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 518 bytes --]


Summary: table.el tables with row and col spans are not getting exported
as expected on html export. 

Looks like the table markers gets recognized as strikethroughs, mdashes
and ndashes. This apparrently is getting in the way of proper
export. 

Furthermore I see no rowspans and colspans in the generated html.

Local settings:
(setq org-export-prefer-native-exporter-for-tables nil)

Attachments:

1. Input orgfile
2. html generated with C-c C-e h
3. html generated with M-x table-generate-source

Jambunathan K.


[-- Attachment #2: table-table.org --]
[-- Type: text/plain, Size: 1556 bytes --]

* table.el (with no spanning)

+--------+--------+--------+--------+--------+--------+
|label   |a       |b       |c       |d       |e       |
+--------+--------+--------+--------+--------+--------+
|1       |a1      |b1      |c1      |d1      |e1      |
+--------+--------+--------+--------+--------+--------+
|2       |a2      |b2      |c2      |d2      |e2      |
+--------+--------+--------+--------+--------+--------+
|3       |a3      |b3      |c3      |d3      |e3      |
+--------+--------+--------+--------+--------+--------+
|4       |a4      |b4      |c4      |d4      |e4      |
+--------+--------+--------+--------+--------+--------+
|5       |a5      |b5      |c5      |d5      |e5      |
+--------+--------+--------+--------+--------+--------+

* table.el (with spanning)

+--------+--------+--------+--------+--------+-----------+
|label   |a       |b       |c       |d       |e          |
+--------+--------+--------+--------+--------+-----------+
|1       |a1      |b1      |c1      |d1      |e1 e2 e3 e4|
+--------+--------+--------+--------+--------+           |
|2       |a2 b2 c2                  |d2      |           |
+--------+--------+-----------------+--------+           |
|3       |a3      |b3 c3 d3                  |           |
+--------+--------+--------+--------+--------+           |
|4       |a4      |b4      |c4      |d4      |           |
+--------+--------+--------+--------+--------+-----------+
|5       |a5      |b5      |c5      |d5      |e5         |
+--------+--------+--------+--------+--------+-----------+


[-- Attachment #3: table-table.html --]
[-- Type: text/html, Size: 5165 bytes --]

[-- Attachment #4: table-table-generate-source.html --]
[-- Type: text/html, Size: 3566 bytes --]

[-- Attachment #5: Type: text/plain, Size: 201 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [BUG]  export of table.el tables
  2010-12-19 14:07 [BUG] export of table.el tables Jambunathan K
@ 2011-01-09 13:42 ` David Maus
  2011-02-11 13:16   ` Bastien
  0 siblings, 1 reply; 3+ messages in thread
From: David Maus @ 2011-01-09 13:42 UTC (permalink / raw)
  To: Jambunathan K; +Cc: emacs-orgmode


[-- Attachment #1.1: Type: text/plain, Size: 695 bytes --]

At Sun, 19 Dec 2010 19:37:25 +0530,
Jambunathan K wrote:
>
> [1  <text/plain (7bit)>]
>
> Summary: table.el tables with row and col spans are not getting exported
> as expected on html export.
>
> Looks like the table markers gets recognized as strikethroughs, mdashes
> and ndashes. This apparrently is getting in the way of proper
> export.
>
> Furthermore I see no rowspans and colspans in the generated html.

I can confirm this with

Org-mode version 7.4 (release_7.4.135.g84087)

GNU Emacs 23.2.1 (i486-pc-linux-gnu, GTK+ Version 2.20.0)
 of 2010-12-11 on raven, modified by Debian

Best,
  -- David
--
OpenPGP... 0x99ADB83B5A4478E6
Jabber.... dmjena@jabber.org
Email..... dmaus@ictsoc.de

[-- Attachment #1.2: Type: application/pgp-signature, Size: 230 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [BUG]  export of table.el tables
  2011-01-09 13:42 ` David Maus
@ 2011-02-11 13:16   ` Bastien
  0 siblings, 0 replies; 3+ messages in thread
From: Bastien @ 2011-02-11 13:16 UTC (permalink / raw)
  To: David Maus; +Cc: emacs-orgmode, Jambunathan K

David Maus <dmaus@ictsoc.de> writes:

>> Summary: table.el tables with row and col spans are not getting exported
>> as expected on html export.
>>
>> Looks like the table markers gets recognized as strikethroughs, mdashes
>> and ndashes. This apparrently is getting in the way of proper
>> export.
>>
>> Furthermore I see no rowspans and colspans in the generated html.

As a workaround, one can try to export table.el tables to org-mode
tables before export.

Quick hack:

#+begin_src emacs-lisp
(defun org-convert-table-el-all ()
  (interactive)
  (save-excursion
    (goto-char (point-min))
    (while (re-search-forward "^[ \t]*\\+-+.+\\+[ \t]*$" nil t)
      (when (org-at-table.el-p)
	(org-table-create-with-table.el)))))
#+end_src

Hook this to org-export-preprocess-before-selecting-backend-code-hook
and you'll be prompted whether you want to convert tables or not.

Not tested, but you get the idea.

HTH,

-- 
 Bastien

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-02-11 13:16 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-19 14:07 [BUG] export of table.el tables Jambunathan K
2011-01-09 13:42 ` David Maus
2011-02-11 13:16   ` Bastien

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).