Skip to content

Commit

Permalink
LogosHTML: Fix book headline searchfield tags
Browse files Browse the repository at this point in the history
When search field for book headline is enabled, it created two fields-on
tags instead of one fields-on and one fields-off tag.
  • Loading branch information
schierlm committed Jan 21, 2024
1 parent c992f31 commit fdb18dc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ public void doExport(Bible bible, String... exportArgs) throws Exception {
System.out.println("WARNING: Skipping book " + book.getId());
continue;
}
bw.write("<h" + bookHeadlineLevel + ">[[@" + formatMilestone(milestone, "", "") + "]]" + searchField("x-heading", true, 2, new Reference(book.getId(), 1, "1")) + book.getLongName() + " (" + book.getAbbr() + ")" + searchField("x-heading", true, 2, new Reference(book.getId(), 1, "1")) + "</h" + bookHeadlineLevel + ">\n");
bw.write("<h" + bookHeadlineLevel + ">[[@" + formatMilestone(milestone, "", "") + "]]" + searchField("x-heading", true, 2, new Reference(book.getId(), 1, "1")) + book.getLongName() + " (" + book.getAbbr() + ")" + searchField("x-heading", false, 2, new Reference(book.getId(), 1, "1")) + "</h" + bookHeadlineLevel + ">\n");
int cnumber = 0;
for (Chapter chapter : book.getChapters()) {
cnumber++;
Expand Down

0 comments on commit fdb18dc

Please sign in to comment.