Hi,
here's a better version which should work whether or not task numbers
are enabled. If task numbers are disabled, the id tags will consist of
the priority and a pseudo-random number which also makes them unique.
regards,
Markus
--- planner-publish.el.orig Tue Nov 27 22:39:31 2007
+++ planner-publish.el Wed Nov 28 00:21:17 2007
@@ -204,7 +204,7 @@
(planner-end-task-body . "</ul>")
(planner-begin-note-section . "<div id=\"notes\" class=\"section\">")
(planner-end-note-section . "</div>")
- (planner-begin-task . "<li class=\"task\"><span class=\"%s\"><span
class=\"%s\">%s</span>")
+ (planner-begin-task . "<li class=\"task\"><span class=\"%s\"><span
class=\"%s\" id=\"%s\">%s</span>")
(planner-end-task . "</span></li>")
(planner-begin-note . "<div class=\"note\"><a name=\"%s\"></a><span
class=\"anchor\">%s</span>")
(planner-end-note . "</div>")
@@ -579,6 +579,9 @@
(muse-markup-text 'planner-begin-task
status
priority
+ (if planner-use-task-numbers
+ (concat priority number)
+ (concat priority (number-to-string (random
134217727))))
(concat priority number " "
(planner-publish-task-status-collapse status)
" "))))))
Markus Hoenicka writes:
> Hi,
>
> I'd appreciate if you could include the following trivial patch for
> planner-publish.el. The patch adds a unique id attribute to the span
> elements wrapping each task. The id is built from the task priority
> and the task number (the current version requires task numbers, but
> someone in the know may come up with a modified patch which also works
> if there are no task numbers).
>
--
Markus Hoenicka
[EMAIL PROTECTED]
(Spam-protected email: replace the quadrupeds with "mhoenicka")
http://www.mhoenicka.de
_______________________________________________
Planner-el-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/planner-el-discuss