ExamplesTable incorrectly parses files with windows line endings

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.

Assignee

Mauro Talevi

Reporter

Emily Middleton

Labels

None

Components

Fix versions

Affects versions

Priority

Minor
Configure