dont set replace to empty string

This commit is contained in:
Sanj 2012-02-21 03:07:01 +05:30
parent 703d433788
commit c1e6bf36e9

View File

@ -113,6 +113,8 @@ def replacePlaceNames(old, new, operator="", start=0, end=100):
for m in matchedPlaces: for m in matchedPlaces:
value = m['value'] value = m['value']
new_value = value.replace(old, new).strip() new_value = value.replace(old, new).strip()
if new_value = '':
continue
ret.append(api.editAnnotation({ ret.append(api.editAnnotation({
'id': m['id'], 'id': m['id'],
'in': m['in'], 'in': m['in'],