#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
This commit is contained in:
ljacqu
2015-12-26 14:06:59 +01:00
parent 0abfd5705c
commit 72365bc6e4
2 changed files with 5 additions and 23 deletions
+3 -6
View File
@@ -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<CommandDescription> commands,
final String template, boolean addNewLine) {
final String template) {
for (CommandDescription command : commands) {
Map<String, String> 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);
}
}
}