Skip to content

Commit

Permalink
[FLINK-11584][docs][tests] Fix linebreak parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
zentol committed Feb 12, 2019
1 parent 0c90f25 commit 9839126
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ private static Map<String, DocumentedOption> parseDocumentedOptions() throws IOE

private static Collection<DocumentedOption> parseDocumentedOptionsFromFile(Path file) throws IOException {
Document document = Jsoup.parse(file.toFile(), StandardCharsets.UTF_8.name());
document.outputSettings().syntax(Document.OutputSettings.Syntax.xml);
document.outputSettings().prettyPrint(false);
return document.getElementsByTag("table").stream()
.map(element -> element.getElementsByTag("tbody").get(0))
Expand Down

0 comments on commit 9839126

Please sign in to comment.