Fixed a bug with linktitles containing more than just one word
This commit is contained in:
Stefan Ritter 2009-03-02 17:48:24 +01:00
parent f4adbfd744
commit c8cd647d70

View File

@ -103,7 +103,7 @@ if linklist == "True":
print ' <div class="sidebarentry">'
print ' <small>links</small><br />'
for line in content:
print ' &nbsp;<a href=' + line.split(" ")[0] + '>' + line.split(" ")[-1].strip() + '</a>&nbsp;<br />'
print ' &nbsp;<a href=' + line.split(" ")[0] + '>' + line.split(" ", 1)[1] + '</a>&nbsp;<br />'
print ' </div>'
content.close()