src/registry.py: Update StringSurroundedBySpaces to only be one space if an empty value is set.

This commit is contained in:
James Vega 2006-05-01 16:49:23 +00:00
parent afc78317c7
commit adc53b11df

View File

@ -516,7 +516,7 @@ class NormalizedString(String):
class StringSurroundedBySpaces(String):
def setValue(self, v):
if v.lstrip() == v:
if v and v.lstrip() == v:
v= ' ' + v
if v.rstrip() == v:
v += ' '