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