comparison generatehtml.py @ 109:cbf293a787d3

balls committer: GitHub <noreply@github.com>
author Paper <37962225+mrpapersonic@users.noreply.github.com>
date Wed, 26 Oct 2022 19:44:37 -0400
parents d95fcf75275a
children 48eea72be338
comparison
equal deleted inserted replaced
108:d95fcf75275a 109:cbf293a787d3
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 class="pre">\n""" % html.escape(title.strip()) 13 out_str += """ <div class="entry">\n <h1>%s</h1>\n <div>\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')