Skip to content

Conversation

@linawolf
Copy link
Contributor

@linawolf linawolf commented Aug 13, 2023

This is quite a breaking change. However we had a real flaw in design here. We stored blocks of lines as line iterator in the DocumentParserContext that do not represent the document. To prevent adverse effects we cloned the DocumentParserContext. But this means that all data stored in the document context can get lost because it is set in a clone and not the original context.

This is needed to make #534 work

Copy link
Member

@jaapio jaapio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, this looks very good!

Cloning the DocumentContext prevents data to be set on a per DocumentLevel as we will have several contextes per document then
The current content is now handled in the BlockContext
@jaapio jaapio force-pushed the bugfix-documentParserContext branch from 116d73e to cdc9bd1 Compare August 18, 2023 06:45
@jaapio jaapio enabled auto-merge August 18, 2023 06:45
@jaapio jaapio merged commit 6b25d9b into main Aug 18, 2023
@jaapio jaapio deleted the bugfix-documentParserContext branch August 18, 2023 06:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants