This does only happen if the subsection is not contained in a section, which IMO is an invalid structure. Not sure, we're gonna fix that.
so, won't fix ?
Cause: Structure elements can be interpreted as brackets that are only closed by a structure element of the same type or if an surrounding element is closed.
In a regular case this would look like this:
section and subsection being implicitly closed by the closing of the chapter.
Since this concept does not know about priorities among the different types of brackets, it behaves formally the same in the original example.
For internal reference: To fix this, one would at least have to take into account parentheses weights of non-matching brackets in QFoldedLineIterator::incrementUntilBlockEnd() and QNFADefinition::fold(), maybe in more places.
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.