Bug 4472 - Missing / in img tags breaking xslt (and other img tags)

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
This commit is contained in:
Chris Cormack 2010-06-15 10:01:54 +12:00 committed by Galen Charlton
parent b453f7ed5c
commit e0c72d37fa
1 changed files with 10 additions and 4 deletions

View File

@ -74,10 +74,16 @@ sub text_replace_tag ($$) {
sprintf(' %s=%s', $_, $attr->{$_}->[2]) #FIXME
} sort {
$attr->{$a}->[3] <=> $attr->{$b}->[3] #FIXME
} keys %$attr)
. '>';
} else {
$it = $t;
} keys %$attr);
if ($tag eq 'img'){
$it .= ' />';
}
else {
$it .= ' >';
}
}
else {
$it = $t;
}
return $it;
}