brace style

master
Joey Hess 2010-01-07 15:12:17 -05:00
parent 5b152d2fef
commit e68cce6d1d
1 changed files with 4 additions and 2 deletions

View 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>';
}
}