Skip to content

Commit

Permalink
[FIX] README template section levels
Browse files Browse the repository at this point in the history
The README generation could retuen an error like this:

  docutils.utils.SystemMessage: account_avatax/README.rst:349: (SEVERE/4)
  Title level inconsistent:

  Authors
  ~~~~~~~

In fact the Authors section is inside a Credits first level title, ``====``
, and should be a second level title, ``----``
, instead of a third level, ``~~~``.
  • Loading branch information
dreispt committed May 29, 2020
1 parent c571700 commit 46af185
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tools/gen_addon_readme.template
Original file line number Diff line number Diff line change
Expand Up @@ -61,17 +61,17 @@ Credits

{% if authors -%}
Authors
~~~~~~~
-------

{% for author in authors -%}
* {{ author }}
{% endfor %}
{% endif -%}

{{ fragment('CONTRIBUTORS', 'Contributors', sub='~') }}
{{- fragment('CREDITS', 'Other credits', sub='~') -}}
{{ fragment('CONTRIBUTORS', 'Contributors', sub='-') }}
{{- fragment('CREDITS', 'Other credits', sub='-') -}}
Maintainers
~~~~~~~~~~~
-----------
{%- if org_name == 'OCA' %}

This module is maintained by the OCA.
Expand Down

0 comments on commit 46af185

Please sign in to comment.