Commit 83facb3959
switched to using
`textwrap.dedent` for the code templates for `gnome.mkenums_simple`.
That changed indentation, however, making the generated code harder to
understand.
We improve this by properly indenting the multiline strings before
dedenting them. For optional parameters `decl_decorator` and
`header_prefix`, we add a newline if they are set to keep separation
between generated code blocks.
pull/13040/merge
parent
2b37101998
commit
7ebbce2072
1 changed files with 22 additions and 14 deletions
Loading…
Reference in new issue