mirror of
https://github.com/progval/Limnoria.git
synced 2025-05-02 16:31:09 -05:00
src/registry.py: Update StringSurroundedBySpaces to only be one space if an empty value is set.
This commit is contained in:
parent
afc78317c7
commit
adc53b11df
@ -516,7 +516,7 @@ class NormalizedString(String):
|
|||||||
|
|
||||||
class StringSurroundedBySpaces(String):
|
class StringSurroundedBySpaces(String):
|
||||||
def setValue(self, v):
|
def setValue(self, v):
|
||||||
if v.lstrip() == v:
|
if v and v.lstrip() == v:
|
||||||
v= ' ' + v
|
v= ' ' + v
|
||||||
if v.rstrip() == v:
|
if v.rstrip() == v:
|
||||||
v += ' '
|
v += ' '
|
||||||
|
Loading…
x
Reference in New Issue
Block a user