Bug fix: Dont' split messages before the end of a color tag
This commit is contained in:
parent
28b19f92c3
commit
641673fb6c
2 changed files with 4 additions and 3 deletions
|
@ -19,8 +19,7 @@ Bugs
|
||||||
* Windows XP SP2: sometimes mouse clicks dont register? must be some kinda crash
|
* Windows XP SP2: sometimes mouse clicks dont register? must be some kinda crash
|
||||||
* When using mood sort, scroll position jumps to last selected chum
|
* When using mood sort, scroll position jumps to last selected chum
|
||||||
* When switching chumhandles, OP doesn't appear to retain OP status (though they do)
|
* When switching chumhandles, OP doesn't appear to retain OP status (though they do)
|
||||||
* Animations slow down pesterchum on not small conversations
|
* When left for a really long time, animations slow down pesterchum
|
||||||
* Long line splitter will split in the middle of color tags
|
|
||||||
|
|
||||||
Mac Bugs
|
Mac Bugs
|
||||||
--------
|
--------
|
||||||
|
|
4
irc.py
4
irc.py
|
@ -94,9 +94,11 @@ class PesterIRC(QtCore.QThread):
|
||||||
textl = [unicode(text)]
|
textl = [unicode(text)]
|
||||||
def splittext(l):
|
def splittext(l):
|
||||||
if len(l[0]) > 450:
|
if len(l[0]) > 450:
|
||||||
space = l[0].rfind(" ", 0,450)
|
space = l[0].rfind(" ", 0,430)
|
||||||
if space == -1:
|
if space == -1:
|
||||||
space = 450
|
space = 450
|
||||||
|
elif l[0][space+1:space+5] == "</c>":
|
||||||
|
space = space+4
|
||||||
a = l[0][0:space+1]
|
a = l[0][0:space+1]
|
||||||
b = l[0][space+1:]
|
b = l[0][space+1:]
|
||||||
if len(b) > 0:
|
if len(b) > 0:
|
||||||
|
|
Loading…
Reference in a new issue