mirror of
https://github.com/plexusorg/Module-HTTPD.git
synced 2025-06-30 15:36:42 +00:00
Make it look nicer if you decide to view the source for some reason
Yes I know this is useless
This commit is contained in:
@ -79,10 +79,10 @@ public class SchematicDownloadEndpoint extends AbstractServlet
|
||||
for (File worldeditFile : alphabetical)
|
||||
{
|
||||
String sanitizedName = worldeditFile.getName().replaceAll("<","<").replaceAll(">",">");
|
||||
sb.append("<tr>" +
|
||||
"<th scope=\"row\"><a href=\"" + worldeditFile.getName() + "\" download>" + sanitizedName + "</a></th>" +
|
||||
"<td>" + formattedSize(worldeditFile.length()) + "</td>" +
|
||||
"</tr>");
|
||||
sb.append(" <tr>\n" +
|
||||
" <th scope=\"row\">\n <a href=\"" + worldeditFile.getName() + "\" download>" + sanitizedName + "</a>\n </th>\n" +
|
||||
" <td>\n " + formattedSize(worldeditFile.length()) + "\n </td>\n" +
|
||||
" </tr>\n");
|
||||
}
|
||||
file = file.replace("${schematics}", sb.toString());
|
||||
}
|
||||
|
Reference in New Issue
Block a user