Browse Source

Account for length of the ellipsis string when truncating commands

Aanand Prasad 11 years ago
parent
commit
af1b0ed088
1 changed files with 1 additions and 1 deletions
  1. 1 1
      fig/cli/main.py

+ 1 - 1
fig/cli/main.py

@@ -158,7 +158,7 @@ class TopLevelCommand(Command):
             for container in containers:
                 command = container.human_readable_command
                 if len(command) > 30:
-                    command = '%s ...' % command[:30]
+                    command = '%s ...' % command[:26]
                 rows.append([
                     container.name,
                     command,