浏览代码

Fixed table cell content truncating

Deben Oldert 6 年之前
父节点
当前提交
47ff03e352
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      console.py

+ 2 - 2
console.py

@@ -65,9 +65,9 @@ def option_picker(question, options, objects=None, selected=None, quit=False, ta
 
         if objects is not None and table is not None and len(objects) == len(table):
             for j in range(0, len(objects)):
-                _row += '[{' + str(objects[j]) + ':' + str(table[j][1]) + '}] '
+                _row += '[{' + str(objects[j]) + ':' + str(table[j][1]) + '.' + str(table[j][1]) + '}] '
 
-            output(_row.format(__id__=i, x=option).strip())
+            output(_row.format(__id__=str(i), x=option).strip())
 
         else:
             if i == selected: