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

Unnecessary new line \n character #89

Open
tavyandy97 opened this issue Dec 26, 2020 · 4 comments
Open

Unnecessary new line \n character #89

tavyandy97 opened this issue Dec 26, 2020 · 4 comments

Comments

@tavyandy97
Copy link

Hey @jpuri !

I was trying to convert a draft to html. While doing so, I was running to an issue that each block was seperated by a \n character. This seemed to be originating from

blockHtml.push('\n');

Is there any workaround where the new line character is not the delimiter?

Thank you

@iamswain25
Copy link

totally agree. this is causing huge trouble when you set white-space: break-spaces; or pre-wrap.

@antonwestman
Copy link

+1

1 similar comment
@SomeBrujah
Copy link

+1

@SomeBrujah
Copy link

@iamswain25 @antonwestman if I it will helps you use this regular for delete "\n" rawString.replace(/[\r\n]+/g, '')

@github-staff github-staff deleted a comment from vokaplok Sep 17, 2024
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

No branches or pull requests

4 participants