Merge branch 'master' of fucktheforce.de:blogthon
This commit is contained in:
commit
9aedd9142a
@ -55,7 +55,7 @@ def document_header(string):
|
|||||||
if string == "xhtml-strict":
|
if string == "xhtml-strict":
|
||||||
print 'Content-type: text/html\n'
|
print 'Content-type: text/html\n'
|
||||||
print '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"'
|
print '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"'
|
||||||
print ' "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'
|
print ' "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">'
|
||||||
print '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">'
|
print '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">'
|
||||||
if string == "atom":
|
if string == "atom":
|
||||||
print 'Content-type: application/atom+xml\n'
|
print 'Content-type: application/atom+xml\n'
|
||||||
@ -454,14 +454,14 @@ else:
|
|||||||
notfirstline = 0 # Ugly fix for closing comment containers
|
notfirstline = 0 # Ugly fix for closing comment containers
|
||||||
|
|
||||||
for line in comments_content:
|
for line in comments_content:
|
||||||
if line.split(".", 1)[0] == "-":
|
if re.search("^-", line):
|
||||||
if notfirstline == 1:
|
if notfirstline == 1:
|
||||||
print ' </div>'
|
print ' </div>'
|
||||||
print ' </div>'
|
print ' </div>'
|
||||||
notfirstline = 0;
|
notfirstline = 0;
|
||||||
print ' <div class="comment">'
|
print ' <div class="comment">'
|
||||||
print ' <div class="comment_author">' + line.split(".", 1)[1].strip() + '</div>'
|
print ' <div class="comment_author">' + line.split(".", 1)[1].strip() + '</div>'
|
||||||
elif line.split(".", 1)[0] == "+":
|
elif re.search("^\+", line):
|
||||||
print ' <div class="comment_date">' + line.split(".", 1)[1].strip() + '</div>'
|
print ' <div class="comment_date">' + line.split(".", 1)[1].strip() + '</div>'
|
||||||
print ' <div class="comment_content">'
|
print ' <div class="comment_content">'
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user