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

feat: correctly trim whitespace around formatted thoughts #2666

Merged

Conversation

trevinhofmann
Copy link
Collaborator

@trevinhofmann trevinhofmann commented Dec 2, 2024

Overview

This pull request resolves #2159 by adding the trimHtml utility to trim the leading/trailing whitespace within HTML nodes and using that utility in Editable rather than the simple string .trim().

Now, formatted thoughts will also have their whitespace correctly trimmed.

Demo

Screen.Recording.2024-12-02.at.10.55.43.AM.mov

@trevinhofmann trevinhofmann marked this pull request as draft December 2, 2024 17:27
@trevinhofmann trevinhofmann force-pushed the trevin/trim-formatted-thoughts branch from 6402211 to 22db4fd Compare December 3, 2024 17:10
@trevinhofmann trevinhofmann marked this pull request as ready for review December 3, 2024 17:30
Copy link
Contributor

@raineorshine raineorshine left a comment

Choose a reason for hiding this comment

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

@raineorshine raineorshine merged commit 8f205ef into cybersemics:main Dec 3, 2024
3 checks passed
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.

Bold thought not trimmed
2 participants