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 extra space with consecutive <br> tags #1286

Closed
wants to merge 1 commit into from

Conversation

daohoangson
Copy link
Owner

@daohoangson daohoangson commented Jun 30, 2024

Related to #1280

Implements improved handling of consecutive <br> tags in HtmlWidget to prevent extra space between images.

  • Modifies the flatten method in the TagBrBit class to check if the previous bit is also a <br> tag. If so, it avoids adding extra space by not writing a newline character. This change ensures that consecutive <br> tags between images do not result in additional space, aligning the rendered output more closely with expected web standards.

For more details, open the Copilot Workspace session.

@daohoangson daohoangson closed this Jul 6, 2024
@daohoangson daohoangson deleted the fix-consecutive-br branch July 6, 2024 15:13
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