comparison MoinMoin/wikiutil.py @ 3404:e979e3cad972

parse_quoted_separated_ext: fix unclosed quotes
author Johannes Berg <johannes AT sipsolutions DOT net>
date Sat, 22 Mar 2008 03:47:47 +0100
parents d479e393e318
children 6f5e09f14525
comparison
equal deleted inserted replaced
3403:d479e393e318 3404:e979e3cad972
1476 idx += 1 1476 idx += 1
1477 1477
1478 if bracketstack: 1478 if bracketstack:
1479 raise BracketMissingCloseError(bracketstack[-1][0]) 1479 raise BracketMissingCloseError(bracketstack[-1][0])
1480 1480
1481 if quoted:
1482 if len(cur):
1483 if cur[-1] is None:
1484 cur[-1] = '"'
1485 else:
1486 cur[-1] = '"' + cur[-1]
1487 else:
1488 cur.append('"')
1489
1481 additem(result, cur, separator_count, nextitemsep) 1490 additem(result, cur, separator_count, nextitemsep)
1482 1491
1483 return result 1492 return result
1484 1493
1485 def parse_quoted_separated(args, separator=',', name_value=True, seplimit=0): 1494 def parse_quoted_separated(args, separator=',', name_value=True, seplimit=0):