summaryrefslogtreecommitdiff
path: root/IkiWiki
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2009-07-11 00:33:19 -0400
committerJoey Hess <joey@gnu.kitenet.net>2009-07-11 00:33:19 -0400
commitb1b7a2100f6b32ef6bf75e9992e10ed7d28f8525 (patch)
treeb733199f734d1fee97eb07346d81e2760178c545 /IkiWiki
parent0c6a47e9e4c6a5508868b730bed0ac2d0c358ae4 (diff)
img: Pass the align parameter through to the generated img tag.
Diffstat (limited to 'IkiWiki')
-rw-r--r--IkiWiki/Plugin/img.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/IkiWiki/Plugin/img.pm b/IkiWiki/Plugin/img.pm
index a186abdfc..78e378917 100644
--- a/IkiWiki/Plugin/img.pm
+++ b/IkiWiki/Plugin/img.pm
@@ -123,6 +123,7 @@ sub preprocess (@) {
'" height="'.$im->Get("height").'"'.
(exists $params{alt} ? ' alt="'.$params{alt}.'"' : '').
(exists $params{title} ? ' title="'.$params{title}.'"' : '').
+ (exists $params{align} ? ' align="'.$params{align}.'"' : '').
(exists $params{class} ? ' class="'.$params{class}.'"' : '').
(exists $params{id} ? ' id="'.$params{id}.'"' : '').
' />';