comparison MoinMoin/wikiutil.py @ 3400:b12aba864312

fix bug in parse_quoted_separated_ext and add tests that caught the bug
author Johannes Berg <johannes AT sipsolutions DOT net>
date Sat, 22 Mar 2008 01:37:49 +0100
parents b6d727809985
children d75e838f4b72
comparison
equal deleted inserted replaced
3399:b6d727809985 3400:b12aba864312
1416 if cur is None: 1416 if cur is None:
1417 cur = u'' 1417 cur = u''
1418 cur_quoted = False 1418 cur_quoted = False
1419 cur_present = YES 1419 cur_present = YES
1420 else: 1420 else:
1421 cur += '=' 1421 cur += name_value_separator
1422 noquote = False 1422 noquote = False
1423 elif not quoted and not seplimit_reached and char in separators: 1423 elif not quoted and not seplimit_reached and char in separators:
1424 if cur_present != NO: 1424 if cur_present != NO:
1425 (curname, cur, noquote, cur_quoted, 1425 (curname, cur, noquote, cur_quoted,
1426 separator_count, seplimit_reached, 1426 separator_count, seplimit_reached,