Edgewall Software

Ticket #510: macros.cs.diff

File macros.cs.diff, 0.9 KB (added by jamesm@…, 5 years ago)

Patch for macros.cs defining the inline html construct

  • .cs

    old new  
    3737    /if ?><?cs var:block.text.new ?></td></tr> 
    3838  <?cs /each ?> 
    3939<?cs /def ?> 
     40 
     41<?cs def:inlinediff_display(change) ?> 
     42  <?cs each:block = change.blocks ?><tr> 
     43    <?cs if block.type == "unmod" ?><td class="unmod-right"><?cs 
     44      elif block.type == "mod" ?><td class="rem-right"><?cs 
     45      elif block.type == "add" ?><td class="rem-right"><?cs 
     46      elif block.type == "rem" ?><td class="rem-right"><?cs 
     47    /if ?><?cs var:block.text.old ?></td></tr><tr> 
     48    <?cs if block.type == "unmod" ?><td class="hide"><?cs 
     49      elif block.type == "mod" ?><td class="add-right"><?cs 
     50      elif block.type == "add" ?><td class="add-right"><?cs 
     51      elif block.type == "rem" ?><td class="add-right"><?cs 
     52    /if ?><?cs var:block.text.new ?></td></tr> 
     53  <?cs /each ?> 
     54<?cs /def ?>