Skip to content
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

Ensure code writer always has a StringBuilder #1128

Merged
merged 1 commit into from
Mar 11, 2022

Conversation

mtdowling
Copy link
Member

There was an edge case where contents written to nested sections of
captured sections would be swallowed due to how code writer lazily
created StringBuilders. This change ensures that the root writer and
every interceptable writer always define a StringBuilder to ensure no
text is omitted.

Issue #, if available:

Description of changes:

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

There was an edge case where contents written to nested sections of
captured sections would be swallowed due to how code writer lazily
created StringBuilders. This change ensures that the root writer and
every interceptable writer always define a StringBuilder to ensure no
text is omitted.
@mtdowling mtdowling requested a review from a team as a code owner March 10, 2022 20:55
@mtdowling mtdowling merged commit bbee4b7 into main Mar 11, 2022
@mtdowling mtdowling deleted the ensure-parent-sections-is-used branch April 8, 2022 05:31
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