Skip to content

Commit

Permalink
Merge pull request #596 from nilshamerlinck/xml_declaration
Browse files Browse the repository at this point in the history
[IMP] oca-gen-addon-readme: stop emitting an XML declaration
  • Loading branch information
sbidoul authored Dec 10, 2023
2 parents f71041f + 8f89ec4 commit 9a17033
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tools/gen_addon_readme.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,15 @@ def __init__(self, level: int):
# Use the short form of syntax highlighting so that the generated
# Pygments CSS can be used to style the output.
"syntax_highlight": "short",
# Since odoo/odoo@8d06889, Odoo emits a warning
# if index.html contains an xml declaration
"xml_declaration": False,
# ...but even for previous versions we don't need
# the xml declaration as docutils adds a <meta> tag:
# <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
# utf-8 is default value for output_encoding
# but let's make it explicit here:
"output_encoding": "utf-8",
}

# GitHub Flavored Markdown
Expand Down

0 comments on commit 9a17033

Please sign in to comment.