Changeset 3073 for trac/trunk


Ignore:
Timestamp:
02/25/06 01:00:34 (7 years ago)
Author:
moschny
Message:

Small enhancement to the LISTRULE.

Note: \s doesn't work, because in MULTILINE mode, [\r\n]$ matches if
there are empty lines. (re bug?)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trac/trunk/wiki-macros/TracNav.py

    r3071 r3073  
    4343 
    4444 
    45 == Author and license == 
     45== Author and License == 
    4646 
    4747Copyright 2005, 2006 
     
    7979 
    8080TRACNAVHOME = "http://svn.ipd.uka.de/trac/javaparty/wiki/TracNav" 
    81 LISTRULE = re.compile(r"^(?P<indent> +)\* +(?P<rest>.*)$", re.M) 
     81LISTRULE = re.compile(r"^(?P<indent>[ \t\v]+)\* +(?P<rest>.*)$", re.M) 
    8282ALLOWED_MACROS = ["image"] 
    8383 
Note: See TracChangeset for help on using the changeset viewer.