Commit 87f8e4f
committed
Remove redunant commas of tail null values
Certain compilers require null value assignments to end with commas.
The `Namelist` writer contains a special rule to append this comma.
If `end_comma` is enabled, which always finalizes values with commas,
then this would append a second comma, which would transform the record
into two null values.
This patch prevents the redundant comma if end_commas are enabled.
Thanks to Paul Leopardi (@penguian) for reporting.1 parent 778fb0c commit 87f8e4f
File tree
3 files changed
+20
-1
lines changed- f90nml
- tests
3 files changed
+20
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
914 | 914 | | |
915 | 915 | | |
916 | 916 | | |
917 | | - | |
| 917 | + | |
| 918 | + | |
918 | 919 | | |
919 | 920 | | |
920 | 921 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
597 | 597 | | |
598 | 598 | | |
599 | 599 | | |
| 600 | + | |
| 601 | + | |
| 602 | + | |
| 603 | + | |
| 604 | + | |
| 605 | + | |
600 | 606 | | |
601 | 607 | | |
602 | 608 | | |
| |||
0 commit comments