emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] [BUG] export of table.el tables


From: Bastien
Subject: Re: [Orgmode] [BUG] export of table.el tables
Date: Fri, 11 Feb 2011 14:16:42 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

David Maus <address@hidden> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]