Browse Source

fix <title> in html boilerplate

main
lhess2021 4 years ago
parent
commit
d33af2df16
  1. 2
      scripts.d/py-scripts.d/word-count-generator.py

2
scripts.d/py-scripts.d/word-count-generator.py

@ -97,7 +97,7 @@ def dictToHtml(sortedDict, sortType, cantoFile):
elif sortType == 'alpha-black': elif sortType == 'alpha-black':
sortInformation = 'Words sorted alphabetically, with blacklist applied.' sortInformation = 'Words sorted alphabetically, with blacklist applied.'
cantoHeaders = '<h1>' + canticle + ' ' + cantoNum + '</h1>\n<h3>' + sortInformation + '</h3>\n' cantoHeaders = '<h1>' + canticle + ' ' + cantoNum + '</h1>\n<h3>' + sortInformation + '</h3>\n'
boilerplate = '<html>\n' + '<head><meta charset="UTF-8">' + '<head>' + canticleAbbrv + ' ' + cantoNum + ' ' + sortType + '</head>\n' + cantoHeaders + '<table>\n<tr>\n<th>Word</th><th>Count</th>\n</tr>\n' boilerplate = '<html>\n' + '<head><meta charset="UTF-8">' + '<title>' + canticleAbbrv + ' ' + cantoNum + ' ' + sortType + '</title></head>\n' + cantoHeaders + '<table>\n<tr>\n<th>Word</th><th>Count</th>\n</tr>\n'
boilerclose = '</table>\n</html>' boilerclose = '</table>\n</html>'
htmlCanto.write(boilerplate) htmlCanto.write(boilerplate)
for word, count in sortedDict.items(): for word, count in sortedDict.items():

Loading…
Cancel
Save