Changeset 2530

Show
Ignore:
Timestamp:
07/26/07 23:39:16 (1 year ago)
Author:
yattom
Message:

NikoCaleMacro:

add unit test. fixed #1755

now you can commas in comments. fixed #1765

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • nikocalemacro/0.10/nikocale.py

    r2476 r2530  
    104104 
    105105    """ 
     106 
    106107    def render_macro(self, req, name, content): 
    107108        nikocale = NikoCale(req) 
     
    110111            if re.match('^\s*#', line) or re.match('^\s*$', line): 
    111112                continue 
    112             parts = line.split(','
     113            parts = line.split(',', 3
    113114            if not (len(parts) == 3 or len(parts) == 4): 
    114115                continue