summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhttp://www.cse.unsw.edu.au/~willu/ <http://www.cse.unsw.edu.au/~willu/@web>2008-08-25 01:50:27 -0400
committerJoey Hess <joey@kitenet.net>2008-08-25 01:50:27 -0400
commit25723e857ea8d8719020eadcba11570efbc26f4e (patch)
treee8c4629061acc17532a9b69ec8c6598363518376
parent7465e0dd5d3b567076aa0cc8101c35eb26eab22f (diff)
modify patch based on feedback
-rw-r--r--doc/todo/Add_a_plugin_to_list_available_pre-processor_commands.mdwn13
1 files changed, 7 insertions, 6 deletions
diff --git a/doc/todo/Add_a_plugin_to_list_available_pre-processor_commands.mdwn b/doc/todo/Add_a_plugin_to_list_available_pre-processor_commands.mdwn
index e311addcd..0524627d4 100644
--- a/doc/todo/Add_a_plugin_to_list_available_pre-processor_commands.mdwn
+++ b/doc/todo/Add_a_plugin_to_list_available_pre-processor_commands.mdwn
@@ -135,7 +135,7 @@ I've found myself wanting to know which [[plugins]] are switched on so I know wh
>>>>>>>> Only code change I'd suggest is using `htmllink` rather than
>>>>>>>> generating a wikilink.
->>>>>>>>> Yeah - that would make sense. Will do. -- [[Will]]
+>>>>>>>>> Yeah - that would make sense. done. -- [[Will]]
#!/usr/bin/perl
# Ikiwiki listpreprocessors plugin.
@@ -207,7 +207,7 @@ I've found myself wanting to know which [[plugins]] are switched on so I know wh
my @pluginlist;
- if (! defined $params{generated}) {
+ if (defined $params{generated}) {
@pluginlist = @fullPluginList;
} else {
@pluginlist = @earlyPluginList;
@@ -216,13 +216,14 @@ I've found myself wanting to know which [[plugins]] are switched on so I know wh
my $result = '<ul class="listpreprocessors">';
foreach my $plugin (@pluginlist) {
- $result .= '<li class="listpreprocessors">[[' . $config{plugin_description_dir} . $plugin . ']]</li>';
+ $result .= '<li class="listpreprocessors">';
+ $result .= htmllink($params{page}, $params{destpage}, IkiWiki::linkpage($config{plugin_description_dir} . $plugin));
+ $result .= '</li>';
}
$result .= "</ul>";
-
- return IkiWiki::preprocess($params{page}, $params{destpage},
- IkiWiki::filter($params{page}, $params{destpage}, $result));
+
+ return $result;
} # }}}
1