]> sipb.mit.edu Git - ikiwiki.git/commitdiff
img plugin: do not emit a redundant double-quote before alt attribute
authorSimon McVittie <smcv@ http://smcv.pseudorandom.co.uk/>
Tue, 16 Jun 2009 16:15:06 +0000 (17:15 +0100)
committerSimon McVittie <smcv@ http://smcv.pseudorandom.co.uk/>
Tue, 16 Jun 2009 16:15:06 +0000 (17:15 +0100)
IkiWiki/Plugin/img.pm

index a697fea198d1ba7c2b386a704b3971ff30894a7a..a186abdfce81f80ab8625d6c6b05872b34167c7c 100644 (file)
@@ -121,7 +121,7 @@ sub preprocess (@) {
        my $imgtag='<img src="'.$imgurl.
                '" width="'.$im->Get("width").
                '" height="'.$im->Get("height").'"'.
        my $imgtag='<img src="'.$imgurl.
                '" width="'.$im->Get("width").
                '" height="'.$im->Get("height").'"'.
-               (exists $params{alt} ? '" alt="'.$params{alt}.'"' : '').
+               (exists $params{alt} ? ' alt="'.$params{alt}.'"' : '').
                (exists $params{title} ? ' title="'.$params{title}.'"' : '').
                (exists $params{class} ? ' class="'.$params{class}.'"' : '').
                (exists $params{id} ? ' id="'.$params{id}.'"' : '').
                (exists $params{title} ? ' title="'.$params{title}.'"' : '').
                (exists $params{class} ? ' class="'.$params{class}.'"' : '').
                (exists $params{id} ? ' id="'.$params{id}.'"' : '').