diff options
Diffstat (limited to 'IkiWiki/Plugin')
-rw-r--r-- | IkiWiki/Plugin/postsparkline.pm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/postsparkline.pm b/IkiWiki/Plugin/postsparkline.pm index 6f7558bc4..ac7ad9d73 100644 --- a/IkiWiki/Plugin/postsparkline.pm +++ b/IkiWiki/Plugin/postsparkline.pm @@ -55,11 +55,15 @@ sub preprocess (@) { #{{{ if ($@) { return "[[postsparkline error $@]]"; } + + my $color=exists $params{color} ? "($params{color})" : ""; + delete $params{pages}; delete $params{formula}; delete $params{ftime}; + delete $params{color}; return IkiWiki::Plugin::sparkline::preprocess(%params, - map { $_ => "" } reverse @data); + map { $_.$color => "" } reverse @data); } # }}} sub perfoo ($@) { |