Ticket #114: tracintegration.diff

File tracintegration.diff, 977 bytes (added by Nicolas, 17 years ago)

Proposed patch

  • html/inc/text_transform.inc

     
    142142                "@\[size=([1-9]|[0-2][0-9])\](.*?)\[/size\]@is",
    143143                "@\[code\](.*?)\[/code\]@is",
    144144                "@\[mailto\](.*?)\[/mailto\]@is",
    145                 "@\[email\](.*?)\[/email\]@is"           
     145                "@\[email\](.*?)\[/email\]@is",
     146                "@\[bug=(\d+)\]@i"
    146147                //Note: The above list array member ensures we're within a list
    147148                //              when doing list item transformations.
    148149                //TODO: Make sure we're not between two lists
     
    171172                "<span style=\"font-size: \\1px;\">\\2</span>",
    172173                "<div class=\"code\">\\1</div>",
    173174                "<a href=\"mailto:\\1\">\\1</a>",
    174                 "<a href=\"mailto:\\1\">\\1</a>"
     175                "<a href=\"mailto:\\1\">\\1</a>",
     176                "<a href=\"http://boinc.berkeley.edu/trac/ticket/\\1\">#\\1</a>"
    175177                );
    176178               
    177179        // Do the actual replacing - iterations for nested items