the empty section removal does not work correctly if higher section levels are disabled by flags.
Because the section-properties are removed before the empty evaluation, some properties are in the wrong sub sections at the end.
example
Cat 1
Group 1
prop1
SubGroup 1
prop2
Cat 2
prop3
if categories are disabled then currently they are not_keep-marked in the first step and ignored afterwards:
this results in the following (wrong) property list:
Group 1
prop1
SubGroup 1
prop2
prop3
prop3 is now part of SubGroup 1
Possible Solution is to keep all Sections in the first run and remove them based on flags after the empty-section removal: 2b7a0d3e4533cdaeba2695b476b57c99b8be1d7a
the empty section removal does not work correctly if higher section levels are disabled by flags.
Because the section-properties are removed before the empty evaluation, some properties are in the wrong sub sections at the end.
example
if categories are disabled then currently they are
not_keep-marked in the first step and ignored afterwards:this results in the following (wrong) property list:
prop3 is now part of SubGroup 1
Possible Solution is to keep all Sections in the first run and remove them based on flags after the empty-section removal: 2b7a0d3e4533cdaeba2695b476b57c99b8be1d7a