mirror of
https://github.com/plexusorg/Module-HTTPD.git
synced 2024-12-04 01:02:10 +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:
parent
2b24f0ee4c
commit
22bb27af24
@ -79,10 +79,10 @@ public class SchematicDownloadEndpoint extends AbstractServlet
|
|||||||
for (File worldeditFile : alphabetical)
|
for (File worldeditFile : alphabetical)
|
||||||
{
|
{
|
||||||
String sanitizedName = worldeditFile.getName().replaceAll("<","<").replaceAll(">",">");
|
String sanitizedName = worldeditFile.getName().replaceAll("<","<").replaceAll(">",">");
|
||||||
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());
|
||||||
}
|
}
|
||||||
|
@ -15,7 +15,7 @@ SCHEMATICS
|
|||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
${schematics}
|
${schematics}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<script>
|
<script>
|
||||||
|
Loading…
Reference in New Issue
Block a user