emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Baoqiu Cui <cbaoqiu@yahoo.com>
To: niels giesen <niels.giesen@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: org-mode table with backslash inside fails to export to DocBook
Date: Wed, 12 Jan 2011 10:47:47 -0800	[thread overview]
Message-ID: <m1ei8iq7qk.fsf@yahoo.com> (raw)
In-Reply-To: <87aajdni8b.fsf@gmail.com> (niels giesen's message of "Fri, 07 Jan 2011 11:03:32 +0100")

Hi Niels,

niels giesen <niels.giesen@gmail.com> 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)
>  				     "</table>")
> -			     nil nil table)
> +			     nil t table)
>  	    table))
>      ;; Change <table> into <informaltable> 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)
>  			       "</informaltable>")
> -		       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

  reply	other threads:[~2011-01-12 18:47 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-07 10:03 org-mode table with backslash inside fails to export to DocBook niels giesen
2011-01-12 18:47 ` Baoqiu Cui [this message]
  -- strict thread matches above, loose matches on Subject: below --
2011-01-07 17:50 niels giesen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m1ei8iq7qk.fsf@yahoo.com \
    --to=cbaoqiu@yahoo.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=niels.giesen@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).