[gedit] snippets: fix align assertion
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] snippets: fix align assertion
- Date: Tue, 23 Apr 2013 15:02:24 +0000 (UTC)
commit 5d09bf4974bb996b3ae43a31816dee59e4b176e7
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Tue Apr 23 17:01:55 2013 +0200
snippets: fix align assertion
This assertion was produced i.e when running the gobject snippet
plugins/snippets/snippets/snippet.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plugins/snippets/snippets/snippet.py b/plugins/snippets/snippets/snippet.py
index 280483a..bd21470 100644
--- a/plugins/snippets/snippets/snippet.py
+++ b/plugins/snippets/snippets/snippet.py
@@ -87,8 +87,8 @@ class EvalUtilities:
for col in range(0, len(items[row]) - 1):
item = items[row][col]
- result += item + ("\t" * ((maxlen[col] - \
- self._real_len(item, tablen)) / tablen))
+ result += item + ("\t" * int(((maxlen[col] - \
+ self._real_len(item, tablen)) / tablen)))
result += items[row][len(items[row]) - 1]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]