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) for (File worldeditFile : alphabetical)
{ {
String sanitizedName = worldeditFile.getName().replaceAll("<","&lt;").replaceAll(">","&gt;"); String sanitizedName = worldeditFile.getName().replaceAll("<","&lt;").replaceAll(">","&gt;");
sb.append("<tr>" + sb.append(" <tr>\n" +
"<th scope=\"row\"><a href=\"" + worldeditFile.getName() + "\" download>" + sanitizedName + "</a></th>" + " <th scope=\"row\">\n <a href=\"" + worldeditFile.getName() + "\" download>" + sanitizedName + "</a>\n </th>\n" +
"<td>" + formattedSize(worldeditFile.length()) + "</td>" + " <td>\n " + formattedSize(worldeditFile.length()) + "\n </td>\n" +
"</tr>"); " </tr>\n");
} }
file = file.replace("${schematics}", sb.toString()); file = file.replace("${schematics}", sb.toString());
} }

View file

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