[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] [Accepted] [O,5/5] Escape double quotes in headlines
From: |
Bastien Guerry |
Subject: |
[O] [Accepted] [O,5/5] Escape double quotes in headlines |
Date: |
Thu, 17 Mar 2011 09:49:01 +0100 (CET) |
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 <address@hidden>
> X-Patchwork-Id: 692
> Message-Id: <address@hidden>
> To: address@hidden
>
> * 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)
>
- [O] [PATCH 3/5] Replace recursive functions with iterative ones, (continued)
- [O] [PATCH 2/5] Mark a task as a milestone if it is a leaf node and cannot be scheduled, Christian Egli, 2011/03/16
- [O] [PATCH 4/5] Remove a spurious debug statement, Christian Egli, 2011/03/16
- [O] [PATCH 5/5] Escape double quotes in headlines, Christian Egli, 2011/03/16
- [O] [Accepted] [O,5/5] Escape double quotes in headlines,
Bastien Guerry <=
- [O] Re: [PATCH 0/5] Improvements to Taskjuggler export, Marc-Oliver Ihm, 2011/03/16
- Re: [O] [PATCH 0/5] Improvements to Taskjuggler export, Bastien, 2011/03/17