[rt-devel] /Ticket/Elements/ShowAttachments screws up font size

Espen Wiborg espenhw at empolis.no
Mon Nov 24 07:14:55 EST 2003


/Ticket/Elements/ShowAttachments generates HTML like this:

[...]
<li><font size=&#34;-1&#34;>
        <A HREF="/Ticket/Attachment/[Rest of URL]">[Date] [Size]</a></font></li>
[...]

Making the date/size display in a very large font.

The error here, of course, is the "&#34;-1&#34;" bit, which is Mason
escaping the quotes.  The patch below tells Mason not to escape this
string.

--- ../../../../share/html/Ticket/Elements/ShowAttachments      Mon Nov 24 12:32:12 2003
+++ ShowAttachments     Mon Nov 24 12:43:34 2003
@@ -46,7 +46,7 @@

 </%PERL>

-<li><font <%$fontsize%>>
+<li><font <%$fontsize | n%>>
         <A HREF="<%$RT::WebPath%>/Ticket/Attachment/<%$rev->TransactionObj->Id%>/<%$rev->Id%>/<%$rev->Filename | u%>"><%$rev->CreatedAsString%> (<% $size %>)</a></font></li>
 % }
 % $fontsize='size="-2"';

-- 
Espen Wiborg <espenhw at empolis.no>
Meddle not in the affairs of dragons, for you are crunchy and taste
like chicken.




More information about the Rt-devel mailing list