Changes between Version 1 and Version 2 of WikiGoodiesPlugin


Ignore:
Timestamp:
Jan 4, 2006, 4:59:34 PM (9 years ago)
Author:
cboos
Comment:

Removed patch for trunk, now merged in r2723

Legend:

Unmodified
Added
Removed
Modified
  • WikiGoodiesPlugin

    v1 v2  
    66 * Support for displaying smileys, as in
    77   [http://moinmoin.wikiwikiweb.de/HelpOnSmileys MoinMoin]
    8  * Support for inserting HTML 4.0 entities
     8 * Support for inserting HTML 4.0 entities (named entities and numerical entities)
    99 * Support for replacing common text idioms by their corresponding symbols
    1010   (e.g. arrows, fractions, etc.)
     
    4545''(the argument is the number of columns to be used in the displayed table)''
    4646
     47For the entities, only the named ones are shown.
     48For help on using the numerical entities, see for example those
     49[http://home.tiscali.nl/t876506/entitiesTips.html tips].
    4750
    4851=== Known Issues ===
    4952
    50 That plugin will only be compatible with Trac-0.9.3,
    51 which is not yet released...
     53That plugin only works for now with Trac's trunk version (>= !r2723,
     54in order to support HTML entities).
    5255
    53 But it also works for the trunk (!r2713 as of this writing).
    54 However, in order to support the HTML 4.0 entities, this
    55 additional patch is required:
    56 {{{
    57 Index: trac/wiki/formatter.py
    58 ===================================================================
    59 --- trac/wiki/formatter.py      (revision 2713)
    60 +++ trac/wiki/formatter.py      (working copy)
    61 @@ -144,7 +144,6 @@
    62      # between _pre_rules and _post_rules
    63 
    64      _pre_rules = [
    65 -        r"(?P<htmlescape>[&<>])",
    66          # Font styles
    67          r"(?P<bolditalic>%s)" % BOLDITALIC_TOKEN,
    68          r"(?P<bold>%s)" % BOLD_TOKEN,
    69 @@ -160,6 +159,7 @@
    70          r"(?P<htmlescapeentity>!?&#\d+;)"]
    71 
    72      _post_rules = [
    73 +        r"(?P<htmlescape>[&<>])",
    74          # shref corresponds to short TracLinks, i.e. sns:stgt
    75          r"(?P<shref>!?((?P<sns>%s):(?P<stgt>%s|%s(?:%s*%s)?)))" \
    76          % (LINK_SCHEME, QUOTED_STRING,
    77 }}}
     56The plugin will start to work with 0.9.x starting with Trac-0.9.3,
     57which will be probably released only end of this week.
    7858
    7959