diff options
author | https://id.koumbit.net/anarcat <https://id.koumbit.net/anarcat@web> | 2012-04-25 10:28:03 -0400 |
---|---|---|
committer | admin <admin@branchable.com> | 2012-04-25 10:28:03 -0400 |
commit | 566c5c43504e8843e24845749692af9421456dd5 (patch) | |
tree | 5f67c2ed253d11f84f01bae371d9181560a08dd9 | |
parent | c3ccd4c3fe3eb33c0484cf8a032d2021d5209a54 (diff) | |
download | ikiwiki-566c5c43504e8843e24845749692af9421456dd5.tar ikiwiki-566c5c43504e8843e24845749692af9421456dd5.tar.gz |
a potential patch to align those graphs?
-rw-r--r-- | doc/ikiwiki/directive/graph/discussion.mdwn | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/doc/ikiwiki/directive/graph/discussion.mdwn b/doc/ikiwiki/directive/graph/discussion.mdwn new file mode 100644 index 000000000..77bc9c19f --- /dev/null +++ b/doc/ikiwiki/directive/graph/discussion.mdwn @@ -0,0 +1,22 @@ +How to align this? +================== + +I have found this patch to be the only way I can float graphs to the right: + +[[!format diff """ +--- Plugin/graphviz.pm.orig 2012-04-25 10:26:59.531525247 -0400 ++++ Plugin/graphviz.pm 2012-04-25 10:26:01.282922144 -0400 +@@ -87,8 +87,10 @@ + error gettext("failed to run graphviz") if ($sigpipe || $?); + } + ++ my $class = ''; ++ $class = 'class="' . $params{class} if $params{class}; + return "<img src=\"".urlto($dest, $params{destpage}). +- "\" usemap=\"#graph$sha\" />\n". ++ "\" usemap=\"#graph$sha\" $class />\n". + $map; + } +"""]] + +Then I can use `[[!graph class="align-right" ...]]`.. --[[anarcat]] |