mirror of
https://github.com/openSUSE/osc.git
synced 2024-12-26 18:06: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__':
|
if sline.name == '__name__':
|
||||||
continue
|
continue
|
||||||
if sline.type == 'option':
|
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) != '':
|
elif str(sline) != '':
|
||||||
ret.append(str(sline))
|
ret.append(str(sline))
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user