Remove empty lines
This commit is contained in:
parent
37af660977
commit
eef13ab723
2 changed files with 2 additions and 2 deletions
|
@ -40,4 +40,4 @@ class HTMLgen:
|
||||||
styleargs = {"title":self.title,"nav":nav,"main":main,"aside":self.asideHTML,"footer":"Copyright 2016 Morten"}
|
styleargs = {"title":self.title,"nav":nav,"main":main,"aside":self.asideHTML,"footer":"Copyright 2016 Morten"}
|
||||||
else:
|
else:
|
||||||
styleargs = {"title":self.title,"nav":nav,"main":self.asideHTML+main,"aside":"","footer":"Copyright 2016 Morten"}
|
styleargs = {"title":self.title,"nav":nav,"main":self.asideHTML+main,"aside":"","footer":"Copyright 2016 Morten"}
|
||||||
return self.layout%styleargs
|
return '\n'.join([line for line in (self.layout%styleargs).split('\n') if line.strip() != ''])
|
||||||
|
|
2
index.py
2
index.py
|
@ -10,7 +10,7 @@ for i in range(count):
|
||||||
if "homepage" in article["tags"]:
|
if "homepage" in article["tags"]:
|
||||||
html.addArticle(**article)
|
html.addArticle(**article)
|
||||||
except:
|
except:
|
||||||
html.addArticle(**storage.get("articles",i), aid=i)
|
html.addArticle(aid=i, **storage.get("articles",i))
|
||||||
|
|
||||||
print("<!DOCTYPE html>")
|
print("<!DOCTYPE html>")
|
||||||
print(html.renderSite())
|
print(html.renderSite())
|
||||||
|
|
Loading…
Reference in a new issue