mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-25 17:36:13 +01:00
- OscConfigParser.__str__: added special handling for continuation lines
This commit is contained in:
parent
b1db52c7b6
commit
ec971074b0
@ -330,7 +330,9 @@ class OscConfigParser(ConfigParser.SafeConfigParser):
|
||||
if sline.name == '__name__':
|
||||
continue
|
||||
if sline.type == 'option':
|
||||
ret.append(sline.frmt % (sline.name, sline.value))
|
||||
# special handling for continuation lines
|
||||
val = '\n '.join(sline.value.split('\n'))
|
||||
ret.append(sline.frmt % (sline.name, val))
|
||||
elif str(sline) != '':
|
||||
ret.append(str(sline))
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user