From 72365bc6e43b4d5e3c2b47bc47c227ff3d44c235 Mon Sep 17 00:00:00 2001 From: ljacqu Date: Sat, 26 Dec 2015 14:06:59 +0100 Subject: [PATCH] #336 Remove new lines before base commands - GitHub doesn't seem able to add a space before a new base command without adding random new lines in the entire list --- src/tools/commands/CommandPageCreater.java | 9 +++------ src/tools/docs/commands.md | 19 ++----------------- 2 files changed, 5 insertions(+), 23 deletions(-) diff --git a/src/tools/commands/CommandPageCreater.java b/src/tools/commands/CommandPageCreater.java index 8f91b08e2..0c40bac7f 100644 --- a/src/tools/commands/CommandPageCreater.java +++ b/src/tools/commands/CommandPageCreater.java @@ -33,7 +33,7 @@ public class CommandPageCreater implements ToolTask { + "commands/command_entry.tpl.md"); StringBuilder commandsResult = new StringBuilder(); - addCommandsInfo(commandsResult, baseCommands, template, true); + addCommandsInfo(commandsResult, baseCommands, template); FileUtils.generateFileFromTemplate( ToolsConstants.TOOLS_SOURCE_ROOT + "commands/commands.tpl.md", @@ -43,7 +43,7 @@ public class CommandPageCreater implements ToolTask { } private static void addCommandsInfo(StringBuilder sb, Collection commands, - final String template, boolean addNewLine) { + final String template) { for (CommandDescription command : commands) { Map tags = ANewMap .with("command", CommandUtils.constructCommandPath(command)) @@ -54,10 +54,7 @@ public class CommandPageCreater implements ToolTask { sb.append(TagReplacer.applyReplacements(template, tags)); if (!command.getChildren().isEmpty()) { - addCommandsInfo(sb, command.getChildren(), template, false); - } - if (addNewLine) { - sb.append("\n\n"); + addCommandsInfo(sb, command.getChildren(), template); } } } diff --git a/src/tools/docs/commands.md b/src/tools/docs/commands.md index 6000ffcb0..39efe9779 100644 --- a/src/tools/docs/commands.md +++ b/src/tools/docs/commands.md @@ -1,5 +1,5 @@ - + ## AuthMe Commands You can use the following commands to use the features of AuthMe. Mandatory arguments are marked with `< >` @@ -44,33 +44,21 @@ brackets; optional arguments are enclosed in square brackets (`[ ]`). - **/authme reload**: Reload the AuthMeReloaded plugin.
Requires `authme.admin.reload` - **/authme version**: Show detailed information about the installed AuthMeReloaded version, the developers, contributors, and license. - - - **/login** <password>: Command to log in using AuthMeReloaded.
Requires `authme.player.login` - **/login help** [query]: View detailed help pages about AuthMeReloaded login commands. - - - **/logout**: Command to logout using AuthMeReloaded.
Requires `authme.player.logout` - **/logout help** [query]: View detailed help pages about AuthMeReloaded logout commands. - - - **/register** <password> [verifyPassword]: Command to register using AuthMeReloaded.
Requires `authme.player.register` - **/register help** [query]: View detailed help pages about AuthMeReloaded register commands. - - - **/unreg** <password>: Command to unregister using AuthMeReloaded.
Requires `authme.player.unregister` - **/unreg help** [query]: View detailed help pages about AuthMeReloaded unregister commands. - - - **/changepassword** <oldPassword> <newPassword>: Command to change your password using AuthMeReloaded.
Requires `authme.player.changepassword` - **/changepassword help** [query]: View detailed help pages about AuthMeReloaded changepassword commands. - - - **/email**: The AuthMeReloaded Email command base. - **/email help** [query]: View detailed help pages about AuthMeReloaded email commands. - **/email add** <email> <verifyEmail>: Add a new email address to your account. @@ -79,13 +67,10 @@ brackets; optional arguments are enclosed in square brackets (`[ ]`).
Requires `authme.player.email.change` - **/email recover** <email>: Recover your account using an Email address by sending a mail containing a new password.
Requires `authme.player.email.recover` - - - **/captcha** <captcha>: Captcha command for AuthMeReloaded.
Requires `authme.player.captcha` - **/captcha help** [query]: View detailed help pages about AuthMeReloaded captcha commands. - - - **/converter** <job>: Converter command for AuthMeReloaded.
Requires `authme.admin.converter` - **/converter help** [query]: View detailed help pages about AuthMeReloaded converter commands. +