[Trac-tickets] [The Trac Project] #2012: PatchRenderer does not render chunk separator

The Trac Project noreply at edgewall.com
Tue Sep 6 04:59:52 CDT 2005


#2012: PatchRenderer does not render chunk separator
-----------------------------------------------+----------------------------
 Reporter:  Shunichi Goto <gotoh at taiyo.co.jp>  |       Owner:  jonas
     Type:  defect                             |      Status:  new  
 Priority:  normal                             |   Milestone:       
Component:  wiki                               |     Version:  devel
 Severity:  normal                             |   Keywords:                                     |  
-----------------------------------------------+----------------------------
 Trac does not render chunk separator row on ticket or wiki page
 because of typo in template string in patch.py.

 {{{
 #!diff
 Index: patch.py
 ===================================================================
 --- patch.py    (revision 2197)
 +++ patch.py    (working copy)
 @@ -40,12 +40,12 @@
     <colgroup><col class="lineno" /><col class="lineno" /><col
 class="content" /></colgroup>
     <thead><tr>
      <th title="<?cs var:file.oldrev ?>"><?cs var:file.oldrev ?></th>
 -    <th title="<?cs var:file.newrev ?>"><?cs var:item.newrev ?></th>
 +    <th title="<?cs var:file.newrev ?>"><?cs var:file.newrev ?></th>
      <th>&nbsp;</th>
     </tr></thead><?cs
     each:change = file.diff ?><?cs
      call:diff_display(change, diff.style) ?><?cs
 -    if:name(change) < len(item.diff) - 1 ?>
 +    if:name(change) < len(file.diff) - 1 ?>
       <tbody class="skipped">
        <tr><th>&hellip;</th><th>&hellip;</th><td>&nbsp;</td></tr>
       </tbody><?cs
 }}}

-- 
Ticket URL: <http://projects.edgewall.com/trac/ticket/2012>
The Trac Project <http://trac.edgewall.com/>


More information about the Trac-Tickets mailing list