From 82438e23f6d33a2755ab864186629e8bdaa870ad Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Mon, 1 Apr 2013 17:17:55 +0200 Subject: [PATCH] ox-taskjuggler: Fix dependencies resolution * contrib/lisp/ox-taskjuggler.el (org-taskjuggler-format-dependencies): Fix dependencies resolution. --- contrib/lisp/ox-taskjuggler.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/contrib/lisp/ox-taskjuggler.el b/contrib/lisp/ox-taskjuggler.el index d82940324..f4df5bc16 100644 --- a/contrib/lisp/ox-taskjuggler.el +++ b/contrib/lisp/ox-taskjuggler.el @@ -498,9 +498,10 @@ doesn't include leading \"depends\"." (string-match (concat id " +\\({.*?}\\)") dep-str) (org-match-string-no-properties 1)))) path) - ;; Compute number of exclamation marks. + ;; Compute number of exclamation marks by looking for the + ;; common ancestor between TASK and DEP. (while (not (org-element-map parent 'headline - (lambda (task) (eq task dep)))) + (lambda (hl) (eq hl task)))) (incf exclamations) (setq parent (org-export-get-parent parent))) ;; Build path from DEP to PARENT.