Skip to content

Commit

Permalink
Report title correction
Browse files Browse the repository at this point in the history
  • Loading branch information
blakemcbride committed Aug 18, 2024
1 parent b5636c3 commit caf35ff
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main/core/org/kissweb/Groff.java
Original file line number Diff line number Diff line change
Expand Up @@ -376,9 +376,11 @@ private void writePageHeader(String title) {
pw.println("'tl '''" + DateTime.currentDateTimeFormattedTZ() + "'");
else if (!runDate.isEmpty())
pw.println("'tl '''" + runDate + "'");
pw.println("'ce " + (1 + pageTitleLines.size()));
if (title != null && !title.isEmpty())
if (title != null && !title.isEmpty()) {
pw.println("'ce " + (1 + pageTitleLines.size()));
pw.println(title);
} else if (!pageTitleLines.isEmpty())
pw.println("'ce " + pageTitleLines.size());
for (String line : pageTitleLines)
pw.println(line);
pw.println("'SP");
Expand Down

0 comments on commit caf35ff

Please sign in to comment.