Emptylines in linklist are now interpreted as <br />
This commit is contained in:
parent
d03506dd2a
commit
126ed7eded
@ -144,7 +144,9 @@ if linklist == "True":
|
|||||||
print ' <small>links</small><br />'
|
print ' <small>links</small><br />'
|
||||||
content = open("linklist", "r")
|
content = open("linklist", "r")
|
||||||
for line in content:
|
for line in content:
|
||||||
if not line.strip() is "":
|
if line.strip() is "":
|
||||||
|
print ' <br />'
|
||||||
|
else:
|
||||||
print ' <a href="' + line.split(" ")[0] + '" target="_blank">' + line.split(" ", 1)[1].strip() + '</a> <br />'
|
print ' <a href="' + line.split(" ")[0] + '" target="_blank">' + line.split(" ", 1)[1].strip() + '</a> <br />'
|
||||||
content.close()
|
content.close()
|
||||||
print ' </div>'
|
print ' </div>'
|
||||||
|
Loading…
Reference in New Issue
Block a user