Mise à jour de 'ChaChaSimpleINI/core.py'
This commit is contained in:
@@ -130,9 +130,11 @@ class ChaChaSimpleINI_section(ChaChaSimpleINI_section_Base):
|
||||
:return: formated string
|
||||
:rtype: str
|
||||
"""
|
||||
if self.name =="[]":
|
||||
return ""
|
||||
result = self.format() + "\n"
|
||||
# Anonymous root key case
|
||||
result=""
|
||||
if self.name !="[]":
|
||||
result = self.format() + "\n"
|
||||
|
||||
for key in self.ar_keys:
|
||||
if(isinstance(key,ChaChaSimpleINI_key)):
|
||||
result = result + key.format(bBeautify) + "\n"
|
||||
|
||||
Reference in New Issue
Block a user