From d33af2df16ec175b18d54ce8b97676535bb5f34e Mon Sep 17 00:00:00 2001 From: lhess2021 Date: Mon, 6 Jun 2022 22:53:14 -0400 Subject: [PATCH] fix in html boilerplate --- scripts.d/py-scripts.d/word-count-generator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts.d/py-scripts.d/word-count-generator.py b/scripts.d/py-scripts.d/word-count-generator.py index 219a411..802bfd6 100644 --- a/scripts.d/py-scripts.d/word-count-generator.py +++ b/scripts.d/py-scripts.d/word-count-generator.py @@ -97,7 +97,7 @@ def dictToHtml(sortedDict, sortType, cantoFile): elif sortType == 'alpha-black': sortInformation = 'Words sorted alphabetically, with blacklist applied.' 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 + '\n' + cantoHeaders + '\n\n\n\n' boilerclose = '
WordCount
\n' htmlCanto.write(boilerplate) for word, count in sortedDict.items():