[gedit/gnome-3-8] snippets: fix align assertion



commit 808533b8ee83c5df16a5624a5589715e4915e3f9
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]