]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
brace style
authorJoey Hess <joey@gnu.kitenet.net>
Thu, 7 Jan 2010 20:12:17 +0000 (15:12 -0500)
committerJoey Hess <joey@gnu.kitenet.net>
Thu, 7 Jan 2010 20:12:17 +0000 (15:12 -0500)
IkiWiki/Plugin/img.pm

index 6f1919ea04a5621a94a1fae2e746c2d7600411af..83f0036291e29c5d767738c386ace4d2a5b6643b 100644 (file)
@@ -162,14 +162,16 @@ sub preprocess (@) {
        if (! defined $params{link} || lc($params{link}) eq 'yes') {
                if (exists $params{caption} || !exists $params{align}) {
                        $imgtag='<a href="'.$fileurl.'">'.$imgtag.'</a>';
-               } else {
+               }
+               else {
                        $imgtag='<a href="'.$fileurl.'" class="align-'.$params{align}.'">'.$imgtag.'</a>';
                }
        }
        elsif ($params{link} =~ /^\w+:\/\//) {
                if (exists $params{caption} || !exists $params{align}) {
                        $imgtag='<a href="'.$params{link}.'">'.$imgtag.'</a>';
-               } else {
+               }
+               else {
                        $imgtag='<a href="'.$params{link}.'" class="align-'.$params{align}.'">'.$imgtag.'</a>';
                }
        }