Skip to content

Commit

Permalink
Ensure double-newlines between summaries (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrginglymus authored Feb 9, 2021
1 parent 3a2f4cd commit d8f94f3
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,16 +118,17 @@ private Pair<String, String> processErrorOrWarningRow(final FlowGraphTable.Row r
nodeTextBuilder.append(String.format("**Error**: *%s*", errorAction.getDisplayName()));
String log = getLog(flowNode);
if (StringUtils.isNotBlank(log)) {
nodeSummaryBuilder.append(String.format("```%n%s%n```%n<details>%n<summary>Build log</summary>%n%n```%n%s%n```%n</details>%n",
nodeSummaryBuilder.append(String.format("```%n%s%n```%n<details>%n<summary>Build log</summary>%n%n```%n%s%n```%n</details>",
errorAction.getDisplayName(),
log));
}
}
else {
nodeTextBuilder.append(String.format("**Unstable**: *%s*", warningAction.getMessage()));
nodeSummaryBuilder.append(String.format("```%n%s%n```%n%n", warningAction.getMessage()));
nodeSummaryBuilder.append(String.format("```%n%s%n```", warningAction.getMessage()));
}
nodeTextBuilder.append("\n");
nodeSummaryBuilder.append("\n\n"); // Ensure a double newline at the end of summary so the subsequence heading works
return Pair.of(nodeTextBuilder.toString(), nodeSummaryBuilder.toString());
}

Expand Down

0 comments on commit d8f94f3

Please sign in to comment.