Commit c02aa3c
Throw Warning When Reading File with Blank Lines (#7707)
* Added a check to detect when blank lines should have been skipped, but it doesn't solve the problem yet.
* Fixed check added to only check if 'topSkip' is greater than 0. 'topSkip' is greater than 0 when blank lines are present, so I also check if blank lines should be skipped so I can throw a warning to let the user know.
* Updated check for blank lines to ask if 'topSkip' isgreater than 1 to accomodate situation where the header and data are separated by a blank line.
* Used the 'prevStart' variable to detect when each line is separated by a blank line. In the case of each line separated by a blank line, 'prevStart' is always NULL because each line could be a possible header.
* Added test '1578.10' for initial case which issue #3339 pointed out. Causes an error in test 1578.1?
* Changed the number of the test written to verify fix for #3339.
* Removed newline from end of expected warning message.
* Updated NEWS.md with news of the new warning.
* Updated sub-test numbers for test '1578' to match the format established where 0s are prepended when there is more than one significant digit following the decimal.1 parent a803bb1 commit c02aa3c
3 files changed
Lines changed: 18 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
| 50 | + | |
49 | 51 | | |
50 | 52 | | |
51 | 53 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8059 | 8059 | | |
8060 | 8060 | | |
8061 | 8061 | | |
8062 | | - | |
| 8062 | + | |
8063 | 8063 | | |
8064 | | - | |
8065 | | - | |
| 8064 | + | |
| 8065 | + | |
8066 | 8066 | | |
8067 | | - | |
| 8067 | + | |
8068 | 8068 | | |
8069 | | - | |
| 8069 | + | |
8070 | 8070 | | |
8071 | 8071 | | |
8072 | | - | |
8073 | | - | |
8074 | | - | |
8075 | | - | |
| 8072 | + | |
| 8073 | + | |
| 8074 | + | |
| 8075 | + | |
| 8076 | + | |
| 8077 | + | |
8076 | 8078 | | |
8077 | 8079 | | |
8078 | 8080 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1847 | 1847 | | |
1848 | 1848 | | |
1849 | 1849 | | |
| 1850 | + | |
1850 | 1851 | | |
1851 | 1852 | | |
1852 | 1853 | | |
| |||
1950 | 1951 | | |
1951 | 1952 | | |
1952 | 1953 | | |
| 1954 | + | |
| 1955 | + | |
| 1956 | + | |
| 1957 | + | |
1953 | 1958 | | |
1954 | 1959 | | |
1955 | 1960 | | |
| |||
0 commit comments