Commits

Steve Borho  committed a88261e

datamine: truncate treeview text data at 128 chars

Fixes #128

  • Participants
  • Parent commits b5d6b46
  • Tags 0.7.5

Comments (0)

Files changed (1)

File hggtk/datamine.py

             tip, user = self.get_rev_desc(long(revid))
             if self.tabwidth:
                 text = text.expandtabs(self.tabwidth)
-            model.append((revid, toutf(text), tip, toutf(path)))
+            model.append((revid, toutf(text[:128]), tip, toutf(path)))
         if thread.isAlive():
             return True
         else:
             color = colormap.get_color(ctx, curdate)
             if self.tabwidth:
                 text = text.expandtabs(self.tabwidth)
-            model.append((revid, toutf(text), tip, toutf(path.strip()),
+            model.append((revid, toutf(text[:128]), tip, toutf(path.strip()),
                     color, toutf(user), len(model)+1))
         if thread.isAlive():
             return True