aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/graphviz.pm
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2010-06-09 17:43:20 -0400
committerJoey Hess <joey@kitenet.net>2010-06-09 17:43:20 -0400
commitb2327cfae4ac7da1df7bbf848f575b553f74eafb (patch)
tree52e3bb545fab95ac0be7711cb948d1967a9d901d /IkiWiki/Plugin/graphviz.pm
parent118750658885fa64a03c8860d8a3fe2573221276 (diff)
downloadikiwiki-b2327cfae4ac7da1df7bbf848f575b553f74eafb.tar
ikiwiki-b2327cfae4ac7da1df7bbf848f575b553f74eafb.tar.gz
improve preview mode comments
Diffstat (limited to 'IkiWiki/Plugin/graphviz.pm')
-rw-r--r--IkiWiki/Plugin/graphviz.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/IkiWiki/Plugin/graphviz.pm b/IkiWiki/Plugin/graphviz.pm
index c91c92fec..dfd66a03e 100644
--- a/IkiWiki/Plugin/graphviz.pm
+++ b/IkiWiki/Plugin/graphviz.pm
@@ -71,7 +71,8 @@ sub render_graph (\%) {
writefile($dest, $config{destdir}, $png, 1);
}
else {
- # can't write the file, so embed it in a data uri
+ # in preview mode, embed the image in a data uri
+ # to avoid temp file clutter
eval q{use MIME::Base64};
error($@) if $@;
return "<img src=\"data:image/png;base64,".