Bugzilla – Attachment 2248 Details for
Bug 4472
img tags in xslt broken after automatic translation
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed patch
4472 (text/plain), 1.97 KB, created by
Chris Cormack
on 2010-06-17 08:59:18 UTC
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Chris Cormack
Created:
2010-06-17 08:59:18 UTC
Size:
1.97 KB
patch
obsolete
>From chrisc@catalyst.net.nz Tue Jun 15 10:01:59 2010 >Return-Path: <chrisc@catalyst.net.nz> >X-Original-To: chrisc@catalyst.net.nz >Delivered-To: chrisc@catalyst.net.nz >Received: from localhost (localhost [127.0.0.1]) > by mail.catalyst.net.nz (Postfix) with ESMTP id 82D6F33997; > Tue, 15 Jun 2010 10:01:59 +1200 (NZST) >X-Virus-Scanned: Debian amavisd-new at catalyst.net.nz >Received: from mail.catalyst.net.nz ([127.0.0.1]) > by localhost (bertrand.catalyst.net.nz [127.0.0.1]) (amavisd-new, port 10024) > with ESMTP id O6eJeoNUvrb0; Tue, 15 Jun 2010 10:01:58 +1200 (NZST) >Received: from rorohiko (leibniz.catalyst.net.nz [202.78.240.7]) > by mail.catalyst.net.nz (Postfix) with ESMTPS id 1848C33938; > Tue, 15 Jun 2010 10:01:58 +1200 (NZST) >Received: from chrisc by rorohiko with local (Exim 4.69) > (envelope-from <chrisc@rorohiko>) > id 1OOHjA-0004BJ-Ce; Tue, 15 Jun 2010 10:01:56 +1200 >From: Chris Cormack <chrisc@catalyst.net.nz> >To: koha-patches@lists.koha-community.org >Cc: Chris Cormack <chrisc@catalyst.net.nz> >Subject: [PATCH] Bug 4472 - Missing / in img tags breaking xslt (and other img tags) >Date: Tue, 15 Jun 2010 10:01:54 +1200 >Message-Id: <1276552914-16017-1-git-send-email-chrisc@catalyst.net.nz> >X-Mailer: git-send-email 1.6.3.3 >Status: RO >Content-Length: 747 > >--- > misc/translator/tmpl_process3.pl | 14 ++++++++++---- > 1 files changed, 10 insertions(+), 4 deletions(-) > >diff --git a/misc/translator/tmpl_process3.pl b/misc/translator/tmpl_process3.pl >index dbbe18e..af0cde1 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; > } >-- >1.6.3.3 > >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 4472
: 2248