Permalink
Browse files

fixed alignment

  • Loading branch information...
splitbrain committed Nov 24, 2010
1 parent fb9a529 commit cea668dd84131996aeace6aca71e585d1d534ba3
Showing with 3 additions and 3 deletions.
  1. +1 −1 plugin.info.txt
  2. +2 −2 syntax.php
View
@@ -1,7 +1,7 @@
base graphviz
author Andreas Gohr
email andi@splitbrain.org
-date 2010-11-15
+date 2010-11-24
name Graphviz Plugin
desc Create graph images from Graphviz dot language
url http://www.dokuwiki.org/plugin:graphviz
View
@@ -103,8 +103,8 @@ function render($format, &$R, $data) {
$R->doc .= '<img src="'.$img.'" class="media'.$data['align'].'" alt=""';
if($data['width']) $R->doc .= ' width="'.$data['width'].'"';
if($data['height']) $R->doc .= ' height="'.$data['height'].'"';
- if($data['align'] == 'right') $ret .= ' align="right"';
- if($data['align'] == 'left') $ret .= ' align="left"';
+ if($data['align'] == 'right') $R->doc .= ' align="right"';
+ if($data['align'] == 'left') $R->doc .= ' align="left"';
$R->doc .= '/>';
return true;
}elseif($format == 'odt'){

0 comments on commit cea668d

Please sign in to comment.