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

2011-02-11 Thread Bastien
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

___
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


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

2011-01-09 Thread David Maus
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 dmj...@jabber.org
Email. dm...@ictsoc.de


pgpkIHaLViYHH.pgp
Description: PGP signature
___
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


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

2010-12-19 Thread Jambunathan K

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.

* 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 |
++++++---+

Title: table-table


  
  


  table-table


  
	Table of Contents
	
	  
	1 table.el (with no spanning) 
	2 table.el (with spanning) 
	  
	
  

  
	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
	1234
	a1a2 b2 c2a3a4
	b1d2b3 c3 d3b4
	c1c4
	d1d4
	e1 e2 e3 e4
	5
	a5
	b5
	c5
	d5
	e5
	  

	
  
  
	 Author: Jambunathan K
	
	
	 Date: 2010-12-19 19:27:31 
	HTML generated by org-mode 7.4 in emacs 23
  

  



  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 

  

___
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