Skip to content

Commit fd411b1

Browse files
committed
/sitemap.xml: improve XML formatting.
No functional changes.
1 parent a88320f commit fd411b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/java/ru/mystamps/web/controller/SitemapController.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,10 @@ public void getSitemapXml(HttpServletResponse response) {
6262
writer.println("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
6363
writer.println("<urlset xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\">");
6464

65-
writer.print("\t<url>\t\t<loc>");
65+
writer.print("\t<url>\n\t\t<loc>");
6666
writer.print(Url.PUBLIC_URL);
6767
writer.print(Url.INDEX_PAGE);
68-
writer.println("</loc>\t</url>");
68+
writer.println("</loc>\n\t</url>");
6969

7070
for (SitemapInfoDto item : seriesService.findAllForSitemap()) {
7171
writer.println("\t<url>");

0 commit comments

Comments
 (0)