Skip to content

Commit

Permalink
fix failing text on win
Browse files Browse the repository at this point in the history
  • Loading branch information
YegorKozlov committed Dec 2, 2024
1 parent 858fda6 commit dd8862c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,16 +62,16 @@ protected void doGet(SlingHttpServletRequest request, SlingHttpServletResponse r
}
Collection<RedirectRule> rules = RedirectFilter.getRules(request.getResource());
PrintWriter out = response.getWriter();
out.printf("# %s Redirects%n", statusCode == 0 ? "All" : "" + statusCode);
out.printf("# %s Redirects\n", statusCode == 0 ? "All" : "" + statusCode);
for (RedirectRule rule : rules) {
if(statusCode != 0 && rule.getStatusCode() != statusCode) {
continue;
}
String note = rule.getNote();
if(note != null && !note.isEmpty()) {
out.printf("# %s%n", note);
out.printf("# %s\n", note);
}
out.printf("%s %s%n", rule.getSource(), rule.getTarget());
out.printf("%s %s\n", rule.getSource(), rule.getTarget());
}
}
}

0 comments on commit dd8862c

Please sign in to comment.