diff --git a/dom_toml/encoder.py b/dom_toml/encoder.py index f90dd09..aa46075 100644 --- a/dom_toml/encoder.py +++ b/dom_toml/encoder.py @@ -90,7 +90,7 @@ def dump_inline_table(self, section): # noqa: D102 for k, v in section.items(): val_list.append(f"{k} = {self.dump_inline_table(v).rstrip()}") - return f"{{ {val_list:, } }}\n" + return f"{{ {val_list:, } }}" else: return str(self.dump_value(section))