From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Egli Subject: [PATCH 5/5] Escape double quotes in headlines Date: Wed, 16 Mar 2011 12:05:02 +0100 Message-ID: <1300273502-12977-6-git-send-email-christian.egli@alumni.ethz.ch> References: <1300273502-12977-1-git-send-email-christian.egli@alumni.ethz.ch> Return-path: Received: from [140.186.70.92] (port=36582 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PzoXl-0006Gu-NH for emacs-orgmode@gnu.org; Wed, 16 Mar 2011 07:05:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PzoXO-0005fP-5y for emacs-orgmode@gnu.org; Wed, 16 Mar 2011 07:05:10 -0400 Received: from mail.sbszh.ch ([217.162.18.84]:40953) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PzoXN-0005fE-Ph for emacs-orgmode@gnu.org; Wed, 16 Mar 2011 07:05:10 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.sbszh.ch (Postfix) with ESMTP id 34B1E86D0 for ; Wed, 16 Mar 2011 12:05:09 +0100 (CET) Received: from mail.sbszh.ch ([127.0.0.1]) by localhost (mail01.dmz.sbszh.ch [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id AJ3Jw7QFoJgi for ; Wed, 16 Mar 2011 12:05:06 +0100 (CET) Received: from s05.sbszh.ch (s05.sbszh.ch [10.0.9.9]) by mail.sbszh.ch (Postfix) with ESMTP id 974AB86E6 for ; Wed, 16 Mar 2011 12:05:03 +0100 (CET) Received: from localhost (unknown [127.0.0.1]) by localhost.sbszh.ch (Postfix) with ESMTP id A149115C2A8 for ; Wed, 16 Mar 2011 11:05:04 +0000 (UTC) Received: from s05.sbszh.ch ([127.0.0.1]) by localhost (s05.sbszh.ch [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 12211-07-2 for ; Wed, 16 Mar 2011 12:05:03 +0100 (CET) Received: from wharton.sbszh.ch (w302.sbszh.ch [10.0.41.2]) by s05.sbszh.ch (Postfix) with ESMTP id 96EFB15C1D5 for ; Wed, 16 Mar 2011 12:05:03 +0100 (CET) In-Reply-To: <1300273502-12977-1-git-send-email-christian.egli@alumni.ethz.ch> 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 * 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) -- 1.7.1