Skip to content

Commit 0ded0b3

Browse files
committed
fixed test
1 parent 5d492d7 commit 0ded0b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyhocon/converter.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ def to_hocon(cls, config, compact=False, indent=2, level=0):
126126
if '\n' in config.value and len(config.value) > 1:
127127
lines = '"""{value}"""'.format(value=config.value) # multilines
128128
else:
129-
lines = '"{value}"'.format(value=cls.__escape_string(config))
129+
lines = '"{value}"'.format(value=cls.__escape_string(config.value))
130130
elif config is None or isinstance(config, NoneValue):
131131
lines = 'null'
132132
elif config is True:

0 commit comments

Comments
 (0)