Details
Description
ExamplesTable uses "\n" as a separator when splitting the table into rows:
private static final String ROW_SEPARATOR = "\n";
private void parseByRows(...) {
String[] rows = tableAsString.split(ROW_SEPARATOR);
In a file with windows line endings, this leaves a trailing "\r" which is then interpreted as an extra blank column.
Suggested fix is to use the regex "\\r\\n|\\r|
n" to split.
Activity
Mauro Talevi
made changes -
Field | Original Value | New Value |
---|---|---|
Assignee | Mauro Talevi [ maurotalevi ] | |
Fix Version/s | 3.7.6 [ 19035 ] |
Mauro Talevi
made changes -
Fix Version/s | 3.8 [ 19104 ] | |
Fix Version/s | 3.7.6 [ 19035 ] |
Mauro Talevi
made changes -
Status | Open [ 1 ] | In Progress [ 3 ] |
Mauro Talevi
made changes -
Status | In Progress [ 3 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
Pushed a fix. Can you please test snapshot works for you?