Commit 24d7b12
committed
fix(yaml): Better preserve YAML formatting
Updated the YAML editing code to work around an issue where blank lines
and multi-line comments weren't handled correctly, resulting in blank
lines getting deleted and new blank lines getting inserted in comments.
Also changed the default indentation to match what is used in the ZMK
config template, and enabled preserving quotes by default.1 parent bdf631c commit 24d7b12
1 file changed
+16
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
21 | 37 | | |
22 | 38 | | |
23 | 39 | | |
| |||
0 commit comments