Skip to content

Commit

Permalink
Fixed a defect when feature files have no description
Browse files Browse the repository at this point in the history
  • Loading branch information
wakaleo committed Oct 1, 2018
1 parent 3484864 commit 49cd2f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ public java.util.Optional<Narrative> loadFeatureNarrative(File narrativeFile) {
}

private String descriptionWithScenarioReferencesFrom(Feature feature) {
if (feature.getDescription() == null) { return ""; }

return stream(feature.getDescription().split("\\r?\\n"))
.map(line -> DescriptionWithScenarioReferences.from(feature).forText(line))
.collect(Collectors.joining(lineSeparator()));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2039,7 +2039,6 @@ div.scenario-text:empty {
}

.toc-title {
min-width: 55em;
}

.top-list-title {
Expand Down

0 comments on commit 49cd2f4

Please sign in to comment.