diff --git a/bundle/src/main/java/com/adobe/acs/commons/redirects/servlets/RewriteMapServlet.java b/bundle/src/main/java/com/adobe/acs/commons/redirects/servlets/RewriteMapServlet.java index 37242e3d97..c70bbe0c12 100644 --- a/bundle/src/main/java/com/adobe/acs/commons/redirects/servlets/RewriteMapServlet.java +++ b/bundle/src/main/java/com/adobe/acs/commons/redirects/servlets/RewriteMapServlet.java @@ -1,5 +1,5 @@ /* - * ACS AEM Commons + * ACS AEM Commons Bundle * * Copyright (C) 2013 - 2024 Adobe * @@ -62,16 +62,16 @@ protected void doGet(SlingHttpServletRequest request, SlingHttpServletResponse r } Collection 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()); } } } diff --git a/bundle/src/test/java/com/adobe/acs/commons/redirects/servlets/RewriteMapServletTest.java b/bundle/src/test/java/com/adobe/acs/commons/redirects/servlets/RewriteMapServletTest.java index a1eff1a6b7..acb58e9c52 100755 --- a/bundle/src/test/java/com/adobe/acs/commons/redirects/servlets/RewriteMapServletTest.java +++ b/bundle/src/test/java/com/adobe/acs/commons/redirects/servlets/RewriteMapServletTest.java @@ -1,5 +1,5 @@ /* - * ACS AEM Commons + * ACS AEM Commons Bundle * * Copyright (C) 2013 - 2024 Adobe *