From mboxrd@z Thu Jan 1 00:00:00 1970 From: Baoqiu Cui Subject: Re: org-mode table with backslash inside fails to export to DocBook Date: Wed, 12 Jan 2011 10:47:47 -0800 Message-ID: References: <87aajdni8b.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=41967 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pd5ja-0005tU-Fl for emacs-orgmode@gnu.org; Wed, 12 Jan 2011 13:47:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pd5jZ-0001PH-CV for emacs-orgmode@gnu.org; Wed, 12 Jan 2011 13:47:50 -0500 Received: from smtp107.prem.mail.sp1.yahoo.com ([98.136.44.62]:42677) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1Pd5jZ-0001PA-1f for emacs-orgmode@gnu.org; Wed, 12 Jan 2011 13:47:49 -0500 In-Reply-To: <87aajdni8b.fsf@gmail.com> (niels giesen's message of "Fri, 07 Jan 2011 11:03:32 +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: niels giesen Cc: emacs-orgmode@gnu.org Hi Niels, niels giesen writes: > The following changes (replace-match literally in > `org-export-docbook-finalize-table') solves this problem for me, but I > would not know whether this would break anything else. > > #+begin_src diff > diff --git a/lisp/org-docbook.el b/lisp/org-docbook.el > index 91ebb97..ed835b0 100644 > --- a/lisp/org-docbook.el > +++ b/lisp/org-docbook.el > @@ -1367,7 +1367,7 @@ TABLE is a string containing the HTML code generated by > (match-string 1 table) > (match-string 4 table) > "") > - nil nil table) > + nil t table) > table)) > ;; Change into if caption does not exist. > (if (string-match > @@ -1377,7 +1377,7 @@ TABLE is a string containing the HTML code generated by > (match-string 1 table-with-label) > (match-string 3 table-with-label) > "") > - nil nil table-with-label) > + nil t table-with-label) > table-with-label))) > > ;; Note: This function is very similar to > #+end_src This patch seems good to me. I don't think it will break anything. Thanks, -- Baoqiu