From 71cbd19a5615506ca4055056dd5131902a24c19a Mon Sep 17 00:00:00 2001 From: Karsten Schmidt Date: Thu, 27 Sep 2018 16:25:10 +0100 Subject: [PATCH] fix(examples): fix attrib format --- examples/xml-converter/src/format.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/xml-converter/src/format.ts b/examples/xml-converter/src/format.ts index 87ae1bcd2e..db99cc652c 100644 --- a/examples/xml-converter/src/format.ts +++ b/examples/xml-converter/src/format.ts @@ -114,7 +114,7 @@ format.add("obj", (opts, res, x) => { res += "{" + opts.ws + formatPair({ ...opts, indent: 0 }, x, keys[0]) + opts.ws + "}"; } else { const outer = spaces(opts.indent); - res += opts.prefix + opts.lineSep; + res += opts.prefix + "{" + opts.lineSep; for (let i = keys.length; --i >= 0;) { const k = keys[i]; res += formatPair(