Skip to content

Commit

Permalink
[FIX] refactorizacion total
Browse files Browse the repository at this point in the history
  • Loading branch information
jobiols committed Sep 8, 2024
1 parent d56ea97 commit 11e928a
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions tools/gen_readme.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def gen_one_addon_index(readme_filename):
publish_file(
source_path=readme_filename,
destination_path=index_filename,
writer_name="html4css1",
writer_name="html5",
settings_overrides=RST2HTML_SETTINGS,
)
with open(index_filename, "rb") as f:
Expand All @@ -135,13 +135,13 @@ def gen_one_addon_index(readme_filename):
index = re.sub(
rb"(<meta.*generator.*Docutils)\s*[\d.]+", rb"\1", index, re.MULTILINE
)
# remove the http-equiv line
index = re.sub(
rb'<meta\s+http-equiv="Content-Type"\s+content="text/html;\s*charset=utf-8"\s*/?>',
b"",
index,
flags=re.MULTILINE | re.IGNORECASE,
)
# # remove the http-equiv line
# index = re.sub(
# rb'<meta\s+http-equiv="Content-Type"\s+content="text/html;\s*charset=utf-8"\s*/?>',
# b"",
# index,
# flags=re.MULTILINE | re.IGNORECASE,
# )

with open(index_filename, "wb") as f:
f.write(index)
Expand Down

0 comments on commit 11e928a

Please sign in to comment.