mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 12:42:34 +01: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):
|
||||
def setValue(self, v):
|
||||
if v.lstrip() == v:
|
||||
if v and v.lstrip() == v:
|
||||
v= ' ' + v
|
||||
if v.rstrip() == v:
|
||||
v += ' '
|
||||
|
Loading…
Reference in New Issue
Block a user