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:
Telesphoreo 2022-04-21 19:28:12 -05:00
parent 2b24f0ee4c
commit 22bb27af24
2 changed files with 5 additions and 5 deletions

View File

@ -79,10 +79,10 @@ public class SchematicDownloadEndpoint extends AbstractServlet
for (File worldeditFile : alphabetical)
{
String sanitizedName = worldeditFile.getName().replaceAll("<","&lt;").replaceAll(">","&gt;");
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());
}

View File

@ -15,7 +15,7 @@ SCHEMATICS
</tr>
</thead>
<tbody>
${schematics}
${schematics}
</tbody>
</table>
<script>