Skip to content

Commit

Permalink
Improve ReportHTML output
Browse files Browse the repository at this point in the history
Versifications that do not include any verses of a given book are no
longer mentioned in the section for that book.
  • Loading branch information
schierlm committed Oct 4, 2019
1 parent 39ff701 commit c4791b5
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ private void doExportVersifications(File outputFile, List<Versification> versifi
table.put(name, bv);
}
List<String> tableKeys = new ArrayList<>(table.keySet());
tableKeys.removeIf(k -> table.get(k).getChapterCount() == 0);
tableKeys.sort(Comparator.comparing((String s) -> s.replaceAll("[^ ]", "").replace(' ', 'x')).reversed().thenComparing(s -> s));
bw.write("<h2 id=\"" + h(bid.getOsisID()) + "\">" + h(bid.getEnglishName()) + "</h2>\n<table>\n<tr><th>&nbsp;</th>");
if (flip) {
Expand Down

0 comments on commit c4791b5

Please sign in to comment.