From 8f89ec4917aa57ff459f631d1d85f48642211a65 Mon Sep 17 00:00:00 2001 From: Nils Hamerlinck Date: Fri, 8 Dec 2023 15:56:37 +0700 Subject: [PATCH] gen-addon-readme: stop emitting an XML declaration --- tools/gen_addon_readme.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/tools/gen_addon_readme.py b/tools/gen_addon_readme.py index ef5c7ac5..3eb903e4 100644 --- a/tools/gen_addon_readme.py +++ b/tools/gen_addon_readme.py @@ -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 tag: + # + # utf-8 is default value for output_encoding + # but let's make it explicit here: + "output_encoding": "utf-8", } # GitHub Flavored Markdown