]> sipb.mit.edu Git - ikiwiki.git/blob - doc/ikiwiki/directive/graph/discussion.mdwn
a potential patch to align those graphs?
[ikiwiki.git] / doc / ikiwiki / directive / graph / discussion.mdwn
1 How to align this?
2 ==================
3
4 I have found this patch to be the only way I can float graphs to the right:
5
6 [[!format diff """
7 --- Plugin/graphviz.pm.orig     2012-04-25 10:26:59.531525247 -0400
8 +++ Plugin/graphviz.pm  2012-04-25 10:26:01.282922144 -0400
9 @@ -87,8 +87,10 @@
10                 error gettext("failed to run graphviz") if ($sigpipe || $?);
11         }
12
13 +       my $class = '';
14 +       $class = 'class="' . $params{class} if $params{class};
15         return "<img src=\"".urlto($dest, $params{destpage}).
16 -               "\" usemap=\"#graph$sha\" />\n".
17 +               "\" usemap=\"#graph$sha\" $class />\n".
18                 $map;
19  }
20 """]]
21
22 Then I can use `[[!graph class="align-right" ...]]`.. --[[anarcat]]