mirror of
https://github.com/plexusorg/Module-HTTPD.git
synced 2024-12-03 16:52:11 +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)
|
||||
{
|
||||
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());
|
||||
}
|
||||
|
@ -15,7 +15,7 @@ SCHEMATICS
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
${schematics}
|
||||
${schematics}
|
||||
</tbody>
|
||||
</table>
|
||||
<script>
|
||||
|
Loading…
Reference in New Issue
Block a user