From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: org-mode table with backslash inside fails to export to DocBook (now right) Date: Sat, 8 Jan 2011 18:54:10 +0100 Message-ID: <40A78EFB-CEDE-46FB-BA37-3699C7DD7CC7@gmail.com> References: <87aajcwqcd.fsf@gmail.com> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=46774 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pbcze-0005mK-QB for emacs-orgmode@gnu.org; Sat, 08 Jan 2011 12:54:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PbczX-0001FW-RR for emacs-orgmode@gnu.org; Sat, 08 Jan 2011 12:54:22 -0500 Received: from mail-ey0-f169.google.com ([209.85.215.169]:35224) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PbczX-0001F2-M6 for emacs-orgmode@gnu.org; Sat, 08 Jan 2011 12:54:15 -0500 Received: by eyh6 with SMTP id 6so4943961eyh.0 for ; Sat, 08 Jan 2011 09:54:14 -0800 (PST) In-Reply-To: <87aajcwqcd.fsf@gmail.com> 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 Applied, thanks. - Carsten On Jan 7, 2011, at 6:55 PM, niels giesen wrote: > Hi list, Baoqiu, > > A file with the following contents fails to export to Docbook: > > #+begin_src org > ,* Table with a backslash in it > > , | \ | > #+end_src > > It gives the following error > > #+begin_example > "Invalid use of `\' in replacement text" > #+end_example > > 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 > > Regards, > Niels. > > (note: i inadvertently posted a multi-mime message before this one, > playing with > org-mime-subtree, please forget that one) > > -- > > http://pft.github.com > > _______________________________________________ > 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