Recognize [background_layer] as a valid child of [part]
This commit is contained in:
parent
504fd44747
commit
ce48d18dfb
1 changed files with 1 additions and 1 deletions
|
@ -1011,7 +1011,7 @@ def local_sanity_check(filename, nav, key, prefix, value, comment):
|
|||
print errlead + 'translatability mark before non-string'
|
||||
# Most tags are not allowed with [part]
|
||||
if ("[part]" in ancestors or parent == "[part]") and isOpener(nav.element) and \
|
||||
nav.element not in ("[part]", "[image]", "[insert_tag]",
|
||||
nav.element not in ("[part]", "[background_layer]", "[image]", "[insert_tag]",
|
||||
"[if]", "[then]", "[else]", "[switch]", "[case]",
|
||||
"[variable]", "[deprecated_message]"):
|
||||
print errlead + '%s not permitted within [part] tag' % nav.element
|
||||
|
|
Loading…
Add table
Reference in a new issue