diff --git a/pyhocon/converter.py b/pyhocon/converter.py index c1f7745e..66758195 100644 --- a/pyhocon/converter.py +++ b/pyhocon/converter.py @@ -126,7 +126,7 @@ def to_hocon(cls, config, compact=False, indent=2, level=0): if '\n' in config.value and len(config.value) > 1: lines = '"""{value}"""'.format(value=config.value) # multilines else: - lines = '"{value}"'.format(value=cls.__escape_string(config)) + lines = '"{value}"'.format(value=cls.__escape_string(config.value)) elif config is None or isinstance(config, NoneValue): lines = 'null' elif config is True: