From e0c72d37fa711bf6208aa2ded518a8a366eabb50 Mon Sep 17 00:00:00 2001 From: Chris Cormack Date: Tue, 15 Jun 2010 10:01:54 +1200 Subject: [PATCH] Bug 4472 - Missing / in img tags breaking xslt (and other img tags) Signed-off-by: Galen Charlton --- misc/translator/tmpl_process3.pl | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/misc/translator/tmpl_process3.pl b/misc/translator/tmpl_process3.pl index dbbe18e9b3..af0cde18d5 100755 --- a/misc/translator/tmpl_process3.pl +++ b/misc/translator/tmpl_process3.pl @@ -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; } -- 2.39.5