Skip to content

logic bug on empty section removal #41

@vladtepesch

Description

@vladtepesch

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions