From 54aef0de330263546923ea8dff993572d19ff376 Mon Sep 17 00:00:00 2001 From: Liam Newman Date: Mon, 20 Aug 2018 23:25:05 -0700 Subject: [PATCH] Reproduce issue #29 --- src/test/formatter.test.ts | 41 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/src/test/formatter.test.ts b/src/test/formatter.test.ts index 16bcf3b..b74c243 100644 --- a/src/test/formatter.test.ts +++ b/src/test/formatter.test.ts @@ -193,4 +193,45 @@ suite('JSON Formatter', () => { format(content, expected); }); + + test('bug 29 ', () => { + var content = [ + '
', + '
',
+			'    stuff',
+			'  
', + '
' + ].join('\n'); + + var expected = [ + '
', + '
',
+			'    stuff',
+			'  
', + '
' + ].join('\n'); + + format(content, expected); + }); + + test('bug 29', () => { + var content = [ + '
', + '|
',
+			'    stuff',
+			'  
|', + '
' + ].join('\n'); + + var expected = [ + '
', + '
',
+			'    stuff',
+			'  
', + '
' + ].join('\n'); + + format(content, expected); + }); + }); \ No newline at end of file