Edgewall Software
Modify

Opened 19 years ago

Closed 18 years ago

#2683 closed defect (fixed)

HTML for Report 6 (All Tickets By Milestone (Including Closed)) (and probably others) is excessively wasteful

Reported by: anonymous Owned by: daniel
Priority: normal Milestone: 0.11
Component: report system Version: 0.9.3
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

Here is an example of the generated page:

   <td class="ticket"><a title="View ticket" href="/trac/ticket/1422">#1422</a></td>
   
         
   

         

 
         
           
 
   <td class="summary"><a title="View ticket" href="/trac/ticket/1422">TypeError in trial</a></td>
           
         

           
         
   
      
         
          
       
   <td class="component"></td>

A page with 1420 tickets came out to 2 megabytes. When replacing every occurance of " " with "" in the generated HTML, the page came to only 1 megabyte.

Attachments (0)

Change History (4)

comment:1 by sid, 18 years ago

#3131 was marked as duplicate of this ticket. It dug into the problem more and suggested a fix.

the 'display:block' css attribute causes a newline after every link in a 'description' column in the report view.

this can be fixed by removing line 36 from report.css:

.tickets tbody td :link, .tickets tbody td :visited { display: block }

i only checked this with firefox 1.5, not sure how this works with other browsers.

comment:2 by itsme@…, 18 years ago

no, it is not the same issue.

i think this ticket can be solved by removing the indenting from the templates/*.cs files.

what i was refering to is how the browser renders links in the 'Description' field in a report. … see my new note with #3131

comment:3 by Christian Boos, 18 years ago

Milestone: 0.11

comment:4 by Christian Boos, 18 years ago

Resolution: fixed
Status: newclosed

The reports rendered by the Genshi template in 0.11 don't have this problem, thanks to the whitespace stripping done while rendering to xhtml (see genshi:source:/trunk/genshi/output.py).

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain daniel.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from daniel to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.