Commit 32e9087
Fix formatting of nodes with no children (#1351)
For example, this fixes an issue where an empty module turns into ` \n`.
Closes #1348
---------
Co-authored-by: Jen Basch <[email protected]>1 parent 9d41518 commit 32e9087
File tree
2 files changed
+8
-1
lines changed- pkl-formatter/src
- main/kotlin/org/pkl/formatter
- test/kotlin/org/pkl/formatter
2 files changed
+8
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1239 | 1239 | | |
1240 | 1240 | | |
1241 | 1241 | | |
1242 | | - | |
| 1242 | + | |
1243 | 1243 | | |
1244 | 1244 | | |
1245 | 1245 | | |
| |||
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
116 | 123 | | |
0 commit comments