From 0ded0b3ad294720f953d2ee4e1c86be76582ec84 Mon Sep 17 00:00:00 2001 From: Francois Dang Ngoc Date: Thu, 26 Sep 2019 21:55:44 -0400 Subject: [PATCH] fixed test --- pyhocon/converter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: