aboutsummaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2010-01-07 15:12:17 -0500
committerJoey Hess <joey@gnu.kitenet.net>2010-01-07 15:12:17 -0500
commite68cce6d1d51a513f54ab7d7e77e7c249aad3c06 (patch)
treecc925260588591788293c74d45df3f39895f53a2 /IkiWiki
parent5b152d2fefeac63008b4bfd381fe599b853c035a (diff)
downloadikiwiki-e68cce6d1d51a513f54ab7d7e77e7c249aad3c06.tar
ikiwiki-e68cce6d1d51a513f54ab7d7e77e7c249aad3c06.tar.gz
brace style
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Plugin/img.pm6
1 files changed, 4 insertions, 2 deletions
diff --git a/IkiWiki/Plugin/img.pm b/IkiWiki/Plugin/img.pm
index 6f1919ea0..83f003629 100644
--- a/IkiWiki/Plugin/img.pm
+++ b/IkiWiki/Plugin/img.pm
@@ -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>';
}
}