mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 13:19:24 +01:00
src/registry.py: Update StringWithSpaceOnRight to accept the empty string as a valid value (instead of padding a space).
This commit is contained in:
parent
adc53b11df
commit
67697d8245
@ -524,7 +524,7 @@ class StringSurroundedBySpaces(String):
|
||||
|
||||
class StringWithSpaceOnRight(String):
|
||||
def setValue(self, v):
|
||||
if v.rstrip() == v:
|
||||
if v and v.rstrip() == v:
|
||||
v += ' '
|
||||
super(StringWithSpaceOnRight, self).setValue(v)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user