String must be unicode for truncation to work for non ascii characters.
svn: r13178
This commit is contained in:
parent
6d14ba233c
commit
4e7df6fc71
@ -146,7 +146,7 @@ class HeadlineNewsGramplet(Gramplet):
|
||||
if (node2.nodeName == "item"):
|
||||
title = ""
|
||||
link = ""
|
||||
desc = ""
|
||||
desc = u""
|
||||
# Gather up the data:
|
||||
for item_node in node2.childNodes:
|
||||
#print "---> ", item_node.nodeName
|
||||
@ -186,7 +186,7 @@ class HeadlineNewsGramplet(Gramplet):
|
||||
|
||||
def strip_html(self, text):
|
||||
text = text.replace("nbsp;", " ")
|
||||
retval = ""
|
||||
retval = u""
|
||||
last_c = None
|
||||
state = "plain"
|
||||
for c in text:
|
||||
|
Loading…
Reference in New Issue
Block a user