projects
/
srvgit
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4c14cd3
)
Bug 4472 - Missing / in img tags breaking xslt (and other img tags)
author
Chris Cormack
<chrisc@catalyst.net.nz>
Mon, 14 Jun 2010 21:59:40 +0000
(09:59 +1200)
committer
Chris Cormack
<chrisc@catalyst.net.nz>
Mon, 14 Jun 2010 21:59:40 +0000
(09:59 +1200)
misc/translator/tmpl_process3.pl
patch
|
blob
|
history
diff --git
a/misc/translator/tmpl_process3.pl
b/misc/translator/tmpl_process3.pl
index
dbbe18e
..
af0cde1
100755
(executable)
--- 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;
}