You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by sp...@apache.org on 2016/08/27 11:16:48 UTC

[3/5] tinkerpop git commit: fixed alignment

fixed alignment


Project: http://git-wip-us.apache.org/repos/asf/tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/tinkerpop/commit/8f80bfcf
Tree: http://git-wip-us.apache.org/repos/asf/tinkerpop/tree/8f80bfcf
Diff: http://git-wip-us.apache.org/repos/asf/tinkerpop/diff/8f80bfcf

Branch: refs/heads/master
Commit: 8f80bfcf5faf4523505202e41a6f3aca160da218
Parents: 2e51db9
Author: Robert Dale <ro...@gmail.com>
Authored: Fri Aug 26 17:28:48 2016 -0400
Committer: Robert Dale <ro...@gmail.com>
Committed: Fri Aug 26 17:28:48 2016 -0400

----------------------------------------------------------------------
 .../org/apache/tinkerpop/gremlin/console/Console.groovy      | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/8f80bfcf/gremlin-console/src/main/groovy/org/apache/tinkerpop/gremlin/console/Console.groovy
----------------------------------------------------------------------
diff --git a/gremlin-console/src/main/groovy/org/apache/tinkerpop/gremlin/console/Console.groovy b/gremlin-console/src/main/groovy/org/apache/tinkerpop/gremlin/console/Console.groovy
index 792611f..5645e8d 100644
--- a/gremlin-console/src/main/groovy/org/apache/tinkerpop/gremlin/console/Console.groovy
+++ b/gremlin-console/src/main/groovy/org/apache/tinkerpop/gremlin/console/Console.groovy
@@ -171,14 +171,14 @@ class Console {
         if (interactive) {
             int lineNo = groovy.buffers.current().size() 
             if (lineNo > 0 ) {
-                String lineStr = lineNo.toString() + "> "
-                int pad = Preferences.inputPrompt.length() - lineStr.length()
+                String lineStr = lineNo.toString() + ">"
+                int pad = Preferences.inputPrompt.length() - lineStr.length() + 2
                 if (pad < 0) {
                     pad = 0
                 }
-                return Colorizer.render(Preferences.inputPromptColor, lineNo.toString().padLeft(pad, '.'))
+                return Colorizer.render(Preferences.inputPromptColor, lineStr.toString().padLeft(pad, '.') + ' ')
             } else {
-                return Colorizer.render(Preferences.inputPromptColor, Preferences.inputPrompt + " ")
+                return Colorizer.render(Preferences.inputPromptColor, Preferences.inputPrompt + ' ')
             }
         } else {
             return ""