From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jambunathan K Subject: [BUG] export of table.el tables Date: Sun, 19 Dec 2010 19:37:25 +0530 Message-ID: <81d3oxn9eq.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from [140.186.70.92] (port=49076 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PUJvJ-00057R-Rx for emacs-orgmode@gnu.org; Sun, 19 Dec 2010 09:07:43 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PUJvI-0004zx-5w for emacs-orgmode@gnu.org; Sun, 19 Dec 2010 09:07:41 -0500 Received: from mail-iy0-f169.google.com ([209.85.210.169]:50904) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PUJvH-0004zi-W9 for emacs-orgmode@gnu.org; Sun, 19 Dec 2010 09:07:40 -0500 Received: by iyj17 with SMTP id 17so1800107iyj.0 for ; Sun, 19 Dec 2010 06:07:38 -0800 (PST) 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: emacs-orgmode@gnu.org --=-=-= 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. --=-=-= Content-Disposition: attachment; filename=table-table.org Content-Description: table-table.org * 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 | +--------+--------+--------+--------+--------+-----------+ --=-=-= Content-Type: text/html Content-Disposition: attachment; filename=table-table.html Content-Description: table-table.html table-table

table-table

1 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

2 table.el (with spanning)

–——–——+–——+–——+–——+ | –——–——+–—————+–——+ | –——–——+–——+–——+–——+ |

label a b c d e
1
2
3
4
a1
a2 b2 c2
a3
a4
b1
d2
b3 c3 d3
b4
c1


c4
d1


d4
e1 e2 e3 e4


5 a5 b5 c5 d5 e5

Author: Jambunathan K <kjambunathan@gmail.com>

Date: 2010-12-19 19:27:31

HTML generated by org-mode 7.4 in emacs 23

--=-=-= Content-Type: text/html Content-Disposition: attachment; filename=table-table-generate-source.html Content-Description: table-table-generate-source.html
Table
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         
--=-=-= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --=-=-=-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Maus Subject: Re: [BUG] export of table.el tables Date: Sun, 09 Jan 2011 14:42:46 +0100 Message-ID: <87vd1ykxbd.wl%dmaus@ictsoc.de> References: <81d3oxn9eq.fsf@gmail.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: multipart/mixed; boundary="===============1455154116==" Return-path: Received: from [140.186.70.92] (port=45157 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PbvYM-0004KD-Je for emacs-orgmode@gnu.org; Sun, 09 Jan 2011 08:43:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PbvYK-0003bH-RL for emacs-orgmode@gnu.org; Sun, 09 Jan 2011 08:43:26 -0500 Received: from mailout110.xlhost.de ([213.202.242.110]:41818 helo=mysql1.xlhost.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PbvYK-0003au-JJ for emacs-orgmode@gnu.org; Sun, 09 Jan 2011 08:43:24 -0500 In-Reply-To: <81d3oxn9eq.fsf@gmail.com> 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: Jambunathan K Cc: emacs-orgmode@gnu.org --===============1455154116== Content-Type: multipart/signed; boundary="pgp-sign-Multipart_Sun_Jan__9_14:42:46_2011-1"; micalg=pgp-sha256; protocol="application/pgp-signature" Content-Transfer-Encoding: 7bit --pgp-sign-Multipart_Sun_Jan__9_14:42:46_2011-1 Content-Type: text/plain; charset=US-ASCII At Sun, 19 Dec 2010 19:37:25 +0530, Jambunathan K wrote: > > [1 ] > > 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 --pgp-sign-Multipart_Sun_Jan__9_14:42:46_2011-1 Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iF4EAREIAAYFAk0pu1YACgkQma24O1pEeOawLAD9HOFRzp8TNaxjrYSxkS2V/yMA SdRi+shYRd13MDu3SbIA/RUcNKjfs930HhPvfRNLpjFGAoLmNJRZ5q/OMTn4Tfl1 =aJUY -----END PGP SIGNATURE----- --pgp-sign-Multipart_Sun_Jan__9_14:42:46_2011-1-- --===============1455154116== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --===============1455154116==-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: [BUG] export of table.el tables Date: Fri, 11 Feb 2011 14:16:42 +0100 Message-ID: <87r5besocl.fsf@gnu.org> References: <81d3oxn9eq.fsf@gmail.com> <87vd1ykxbd.wl%dmaus@ictsoc.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=48220 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PnsrX-0005I6-RI for emacs-orgmode@gnu.org; Fri, 11 Feb 2011 08:16:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PnsrW-0005pJ-Hz for emacs-orgmode@gnu.org; Fri, 11 Feb 2011 08:16:39 -0500 Received: from mail-fx0-f41.google.com ([209.85.161.41]:59711) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PnsrW-0005p7-Ba for emacs-orgmode@gnu.org; Fri, 11 Feb 2011 08:16:38 -0500 Received: by fxm12 with SMTP id 12so2843484fxm.0 for ; Fri, 11 Feb 2011 05:16:37 -0800 (PST) In-Reply-To: <87vd1ykxbd.wl%dmaus@ictsoc.de> (David Maus's message of "Sun, 09 Jan 2011 14:42:46 +0100") 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: David Maus Cc: emacs-orgmode@gnu.org, Jambunathan K David Maus 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