Don't die if there is nothing yet...

This commit is contained in:
Sam Ruby 2006-09-02 19:01:00 -04:00
parent aaab9e1e83
commit 7f1f432f73

View File

@ -81,7 +81,7 @@ class copy:
if len(lines) == 1:
target.appendChild(self.dom.createTextNode(source))
self.textlen = len(lines[0])
else:
elif lines:
excerpt = source[:len(lines[0])-self.textlen] + u' \u2026'
target.appendChild(dom.createTextNode(excerpt))
self.full = True