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

Fix text rendering regression for indented documents #65

Merged
merged 1 commit into from
May 19, 2021

Conversation

JohnSundell
Copy link
Owner

Plot 0.9.0 introduced a minor regression for documents that are rendered with indentation, in that plain text nodes would always be rendered on a new line. This patch fixes that by differentiating between plain text output and element-based output, and only the latter causes a new line to be inserted, preserving the previous rendering behavior.

Components that are made up of just plain text also get this behavior, and the unit test that verifies indented documents has been expanded to also cover these cases.

Plot 0.9.0 introduced a minor regression for documents that are rendered with indentation,
in that plain text nodes would always be rendered on a new line. This patch fixes that by
differentiating between plain text output and element-based output, and only the latter
causes a new line to be inserted, preserving the previous rendering behavior.

Components that are made up of just plain text also get this behavior, and the unit test
that verifies indented documents has been expanded to also cover these cases.
@JohnSundell
Copy link
Owner Author

This fixes the Swift Package Index issue that we were discussing @finestructure.

@JohnSundell JohnSundell merged commit c0bdc94 into master May 19, 2021
@JohnSundell JohnSundell deleted the fix-text-indentation branch May 19, 2021 08:37
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.

1 participant