X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/2e1670a821ac2582ac8c65f3ec39bfa64d27577a..b62270dfdddac257a295d80c1a0b2d9786f9a94e:/IkiWiki/Plugin/postsparkline.pm?ds=inline

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 ($@) {