From mboxrd@z Thu Jan 1 00:00:00 1970 From: Manuel Giraud Subject: Re: [PATCH] org-html.el: Fix export of table.el tables. Date: Tue, 26 Apr 2011 17:14:36 +0200 Message-ID: <877hahqc2r.fsf@univ-nantes.fr> References: <81hb9nclv4.fsf@gmail.com> <87hb9lqija.fsf@univ-nantes.fr> <87d3k9qif8.fsf@univ-nantes.fr> <81tydljf74.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([140.186.70.92]:33861) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QEjyK-0006Cl-Ep for emacs-orgmode@gnu.org; Tue, 26 Apr 2011 11:14:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QEjyJ-0005O1-B3 for emacs-orgmode@gnu.org; Tue, 26 Apr 2011 11:14:40 -0400 Received: from smtp-tls1.univ-nantes.fr ([193.52.101.145]:39328 helo=smtp-tls.univ-nantes.fr) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QEjyJ-0005Ng-5a for emacs-orgmode@gnu.org; Tue, 26 Apr 2011 11:14:39 -0400 In-Reply-To: <81tydljf74.fsf@gmail.com> (Jambunathan K.'s message of "Tue, 26 Apr 2011 19:19:03 +0530") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Jambunathan K Cc: emacs-orgmode@gnu.org Jambunathan K writes: > Our understanding matches. For the sake of clarity, here it is: > > For simple tables, > 1. org-export-prefer-native-exporter-for-tables => Non-nil => Use the > HTML code generator in table.el => HTML *source code* has Lots of >   > > 2. org-export-prefer-native-exporter-for-tables => nil => Use Org's own > code generator => HTML *source code* is easy to look at. Yes. The rendered HTML output is prettier with your patch. It is just the HTML source that is full of  . But now, I understand that it comes from table.el. > [snip] > May be you are exporting a different table.el table? Can you post your > example? No, I've used your example to test your patch. > With point within a simple table.el-table, the elisp form down > below should eval to false. Is it any different in your setting? > > #+begin_src emacs-lisp > (let* ((dim (table-query-dimension)) > (c (nth 4 dim)) (r (nth 5 dim)) (cells (nth 6 dim))) > (not (= (* c r) cells))) > #+end_src Yes. It is false for simple table without spanning so I guess it's ok. > It is possible that I have misunderstood how table-query-dimension API > works ... No, it's ok and it is my fault: I was worried about the complex HTML output but now I understood that it is so for spanning table that are rendered by table.el (and as I said I'm no HTML table expert so I guess that table.el is the right thing when it comes to complex tables). Best, -- Manuel Giraud