Commit eb5c8c8
committed
Disallow empty value in list.
$ echo "x [a, , b]" | blaze-bin/third_party/txtpbfmt/fmt
parser.Format for path <stdin> with content "x [a, , b]\n" returned err Empty value in list.
F0428 14:10:56.453731 680717 fmt.go:103] 1 error(s) encountered during execution
Note that this doesn't prevent empty strings:
$ echo "x [a, '' , b]" | blaze-bin/third_party/txtpbfmt/fmt
x [a, "", b]
PiperOrigin-RevId: 4451426751 parent 8830a50 commit eb5c8c8
2 files changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
714 | 714 | | |
715 | 715 | | |
716 | 716 | | |
717 | | - | |
| 717 | + | |
| 718 | + | |
| 719 | + | |
| 720 | + | |
718 | 721 | | |
719 | 722 | | |
720 | 723 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
29 | 31 | | |
30 | 32 | | |
31 | 33 | | |
| |||
0 commit comments