ox-taskjuggler: Fix dependencies resolution

* contrib/lisp/ox-taskjuggler.el (org-taskjuggler-format-dependencies):
  Fix dependencies resolution.
This commit is contained in:
Nicolas Goaziou 2013-04-01 17:17:55 +02:00
parent 989fae0c79
commit 82438e23f6
1 changed files with 3 additions and 2 deletions

View File

@ -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.