Skip to content

!!![TASK] Move LineIterators to Block Context #538

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Aug 18, 2023

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.

2 participants