Stop dumbindent dropping blank lines near braces

This commit is contained in:
Nigel Tao committed 2020-06-10 21:06:06 +10:00
1 parent 58c0862c50
commit b82396a3c6
5 files changed
+27 -26

No files matched your search

+1 -1
View File
@@ -46,7 +46,7 @@ func TestFormatBytes(tt *testing.T) {
}, {
// Consecutive blank lines.
src: "f {\n\n\ng;\n\n\nh;\n\n\n}\n\n",
want: "f {\n g;\n\n\n h;\n}\n",
want: "f {\n\n\n g;\n\n\n h;\n\n\n}\n",
}, {
// Single-quote string.
src: "a = '{'\nb = {\nc = 0\n",