Fix in fileformat.py: Empty fields are None when reading.
This commit is contained in:
parent
9e84d0cfcd
commit
a9f1ac6a66
|
@ -55,6 +55,8 @@ class CommitFormatSyntaxError(Exception):
|
|||
pass
|
||||
|
||||
def read_field_value_str(val):
|
||||
if val.strip() == '':
|
||||
return None
|
||||
return '\n'.join(map(lambda x: x.strip(), val.split('\n'))).strip()
|
||||
|
||||
def read_field_value_int(val):
|
||||
|
|
Reference in New Issue