karaf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbono...@apache.org
Subject karaf git commit: Cleanup asciidoc help printer
Date Mon, 04 Jan 2016 13:21:10 GMT
Repository: karaf
Updated Branches:
  refs/heads/master b1621cffe -> 3d646d690


Cleanup asciidoc help printer


Project: http://git-wip-us.apache.org/repos/asf/karaf/repo
Commit: http://git-wip-us.apache.org/repos/asf/karaf/commit/3d646d69
Tree: http://git-wip-us.apache.org/repos/asf/karaf/tree/3d646d69
Diff: http://git-wip-us.apache.org/repos/asf/karaf/diff/3d646d69

Branch: refs/heads/master
Commit: 3d646d690949e37d193f256c077b2d377226f3bb
Parents: b1621cf
Author: Jean-Baptiste Onofré <jbonofre@apache.org>
Authored: Mon Jan 4 14:20:50 2016 +0100
Committer: Jean-Baptiste Onofré <jbonofre@apache.org>
Committed: Mon Jan 4 14:20:50 2016 +0100

----------------------------------------------------------------------
 .../karaf/tooling/commands/AsciiDoctorCommandHelpPrinter.java | 7 +++++++
 1 file changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/karaf/blob/3d646d69/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/commands/AsciiDoctorCommandHelpPrinter.java
----------------------------------------------------------------------
diff --git a/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/commands/AsciiDoctorCommandHelpPrinter.java
b/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/commands/AsciiDoctorCommandHelpPrinter.java
index c9c63ee..c2699b8 100644
--- a/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/commands/AsciiDoctorCommandHelpPrinter.java
+++ b/tooling/karaf-maven-plugin/src/main/java/org/apache/karaf/tooling/commands/AsciiDoctorCommandHelpPrinter.java
@@ -69,6 +69,7 @@ public class AsciiDoctorCommandHelpPrinter extends AbstractCommandHelpPrinter
{
         out.println();
 
         out.println("== Description");
+        out.println();
         out.println(command.description());
         out.println();
 
@@ -84,11 +85,13 @@ public class AsciiDoctorCommandHelpPrinter extends AbstractCommandHelpPrinter
{
             }
         }
         out.println("== Syntax");
+        out.println();
         out.println(syntax.toString());
         out.println();
 
         if (arguments.size() > 0) {
             out.println("== Arguments");
+            out.println();
             out.println("|===");
             out.println("|Name |Description");
             for (Argument argument : arguments) {
@@ -105,9 +108,11 @@ public class AsciiDoctorCommandHelpPrinter extends AbstractCommandHelpPrinter
{
                 out.println("| " + description);
             }
             out.println("|===");
+            out.println();
         }
         if (options.size() > 0) {
             out.println("== Options");
+            out.println();
             out.println("|===");
             out.println("|Name |Description");
             for (Option option : options) {
@@ -126,9 +131,11 @@ public class AsciiDoctorCommandHelpPrinter extends AbstractCommandHelpPrinter
{
                 out.println("|" + desc);
             }
             out.println("|===");
+            out.println();
         }
         if (command.detailedDescription().length() > 0) {
             out.println("== Details");
+            out.println();
             out.println(command.detailedDescription());
         }
         out.println();


Mime
View raw message