mirror of
https://github.com/boy0001/FastAsyncWorldedit.git
synced 2024-11-28 21:56:33 +01:00
*Fix anchor links
This commit is contained in:
parent
31e64eaaf4
commit
156473356d
@ -126,7 +126,7 @@ public final class DocumentationPrinter {
|
|||||||
|
|
||||||
private static void writePermissionsWikiTable(PrintStream stream, StringBuilder content, String prefix, Class<?> cls) {
|
private static void writePermissionsWikiTable(PrintStream stream, StringBuilder content, String prefix, Class<?> cls) {
|
||||||
String title = cls.getSimpleName().replaceAll("(\\p{Ll})(\\p{Lu})", "$1 $2");
|
String title = cls.getSimpleName().replaceAll("(\\p{Ll})(\\p{Lu})", "$1 $2");
|
||||||
stream.print(" - [`" + title + "`](#" + title.replaceAll(" ", "-") + "-) ");
|
stream.print(" - [`" + title + "`](#" + title.replaceAll(" ", "-").toLowerCase() + "-) ");
|
||||||
Command cmd = cls.getAnnotation(Command.class);
|
Command cmd = cls.getAnnotation(Command.class);
|
||||||
if (cmd != null) {
|
if (cmd != null) {
|
||||||
stream.print(" (" + cmd.desc() + ")");
|
stream.print(" (" + cmd.desc() + ")");
|
||||||
|
Loading…
Reference in New Issue
Block a user