summaryrefslogtreecommitdiff
path: root/rtemstoolkit
diff options
context:
space:
mode:
Diffstat (limited to 'rtemstoolkit')
-rw-r--r--rtemstoolkit/textbox.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/rtemstoolkit/textbox.py b/rtemstoolkit/textbox.py
index 441e333..7e9f34e 100644
--- a/rtemstoolkit/textbox.py
+++ b/rtemstoolkit/textbox.py
@@ -61,7 +61,7 @@ def row(cols, data, indent = 0, marker = '|', linesep = os.linesep):
return s + linesep
def even_columns(cols, width = 80):
- per_col = width / cols
+ per_col = int(width / cols)
columns = [per_col for c in range(0, cols)]
for remainder in range(0, int(width - (per_col * cols))):
if remainder % 2 == 0: