From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Guerry Subject: [Accepted] [O,5/5] Escape double quotes in headlines Date: Thu, 17 Mar 2011 09:49:01 +0100 (CET) Message-ID: <20110317084901.0804A6523@myhost.localdomain> References: <1300273502-12977-6-git-send-email-christian.egli@alumni.ethz.ch> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=39869 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q0AbD-0005Hd-Tj for emacs-orgmode@gnu.org; Thu, 17 Mar 2011 06:38:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q0AbB-0000qh-OB for emacs-orgmode@gnu.org; Thu, 17 Mar 2011 06:38:34 -0400 Received: from mail-ww0-f67.google.com ([74.125.82.67]:64553) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q0AbB-0000qa-Hc for emacs-orgmode@gnu.org; Thu, 17 Mar 2011 06:38:33 -0400 Received: by wwa36 with SMTP id 36so476592wwa.6 for ; Thu, 17 Mar 2011 03:38:32 -0700 (PDT) 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: emacs-orgmode@gnu.org Patch 692 (http://patchwork.newartisans.com/patch/692/) is now "Accepted". Maintainer comment: none This relates to the following submission: http://mid.gmane.org/%3C1300273502-12977-6-git-send-email-christian.egli%40alumni.ethz.ch%3E Here is the original message containing the patch: > Content-Type: text/plain; charset="utf-8" > MIME-Version: 1.0 > Content-Transfer-Encoding: 7bit > Subject: [O,5/5] Escape double quotes in headlines > Date: Wed, 16 Mar 2011 16:05:02 -0000 > From: Christian Egli > X-Patchwork-Id: 692 > Message-Id: <1300273502-12977-6-git-send-email-christian.egli@alumni.ethz.ch> > To: emacs-orgmode@gnu.org > > * org-taskjuggler.el (org-taskjuggler-components): Escape quotes in > headlines. > > Taskjuggler will barf if the task names (which are double quoted > strings) contain double quotes. > > --- > lisp/org-taskjuggler.el | 4 +++- > 1 files changed, 3 insertions(+), 1 deletions(-) > > diff --git a/lisp/org-taskjuggler.el b/lisp/org-taskjuggler.el > index b39353c..ed3af48 100644 > --- a/lisp/org-taskjuggler.el > +++ b/lisp/org-taskjuggler.el > @@ -354,7 +354,9 @@ information, all the properties, etc." > (let* ((props (org-entry-properties)) > (components (org-heading-components)) > (level (nth 1 components)) > - (headline (nth 4 components)) > + (headline > + (replace-regexp-in-string > + "\"" "\\\"" (nth 4 components) t t)) ; quote double quotes in headlines > (parent-ordered (org-taskjuggler-parent-is-ordered-p))) > (push (cons "level" level) props) > (push (cons "headline" headline) props) >