Commit 6e2fa97
authored
Emitter: Output space after an alias mapping key (#185)
Before:
a: &b x
*b: c
Now:
a: &b x
*b : c
Passing tests:
* 26DV: Whitespace around colon in mappings
* E76Z: Aliases in Implicit Block Mapping
* X38W: Aliases in Flow Objects
Test manually because `make test-suite` will overwrite changes in the skiplist:
./tests/run-parser-test-suite tests/run-test-suite/data/26DV/in.yaml | ./tests/run-emitter-test-suite
./tests/run-parser-test-suite tests/run-test-suite/data/E76Z/in.yaml | ./tests/run-emitter-test-suite
./tests/run-parser-test-suite tests/run-test-suite/data/X38W/in.yaml | ./tests/run-emitter-test-suite
Or edit tests/run-test-suite/test/blacklist/libyaml-emitter and do:
(cd tests/run-test-suite; prove -lv test)
Also I added some newlines to yaml.h to help identifying states by number.1 parent f41d360 commit 6e2fa97
2 files changed
+9
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1020 | 1020 | | |
1021 | 1021 | | |
1022 | 1022 | | |
| 1023 | + | |
1023 | 1024 | | |
1024 | 1025 | | |
1025 | 1026 | | |
| |||
1030 | 1031 | | |
1031 | 1032 | | |
1032 | 1033 | | |
| 1034 | + | |
1033 | 1035 | | |
1034 | 1036 | | |
1035 | 1037 | | |
| |||
1040 | 1042 | | |
1041 | 1043 | | |
1042 | 1044 | | |
| 1045 | + | |
1043 | 1046 | | |
1044 | 1047 | | |
1045 | 1048 | | |
| |||
1051 | 1054 | | |
1052 | 1055 | | |
1053 | 1056 | | |
| 1057 | + | |
1054 | 1058 | | |
1055 | 1059 | | |
1056 | 1060 | | |
| |||
1489 | 1493 | | |
1490 | 1494 | | |
1491 | 1495 | | |
| 1496 | + | |
1492 | 1497 | | |
1493 | 1498 | | |
1494 | 1499 | | |
| |||
1499 | 1504 | | |
1500 | 1505 | | |
1501 | 1506 | | |
| 1507 | + | |
1502 | 1508 | | |
1503 | 1509 | | |
1504 | 1510 | | |
| |||
1509 | 1515 | | |
1510 | 1516 | | |
1511 | 1517 | | |
| 1518 | + | |
1512 | 1519 | | |
1513 | 1520 | | |
1514 | 1521 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1023 | 1023 | | |
1024 | 1024 | | |
1025 | 1025 | | |
| 1026 | + | |
| 1027 | + | |
1026 | 1028 | | |
1027 | 1029 | | |
1028 | 1030 | | |
| |||
0 commit comments