Mercurial > codedump
comparison generatehtml.py @ 110:48eea72be338
Update generatehtml.py
committer: GitHub <noreply@github.com>
author | Paper <37962225+mrpapersonic@users.noreply.github.com> |
---|---|
date | Wed, 26 Oct 2022 19:49:00 -0400 |
parents | cbf293a787d3 |
children |
comparison
equal
deleted
inserted
replaced
109:cbf293a787d3 | 110:48eea72be338 |
---|---|
8 title = "Blog - Paper's website" | 8 title = "Blog - Paper's website" |
9 | 9 |
10 def addtitle(out_str, title): | 10 def addtitle(out_str, title): |
11 # add stuff here | 11 # add stuff here |
12 # The title in question: | 12 # The title in question: |
13 out_str += """ <div class="entry">\n <h1>%s</h1>\n <div>\n""" % html.escape(title.strip()) | 13 out_str += """ <div class="entry">\n <h1>%s</h1>\n <div class="pre">\n""" % html.escape(title.strip()) |
14 return out_str | 14 return out_str |
15 | 15 |
16 def main(argv): | 16 def main(argv): |
17 file = open(argv[1], 'r') | 17 file = open(argv[1], 'r') |
18 out = open(argv[2], 'w') | 18 out = open(argv[2], 'w') |