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

PDF into Gutenberg I get unnecessary spaces #17302

Closed
SchneiderSam opened this issue Sep 2, 2019 · 3 comments · Fixed by #17470
Closed

PDF into Gutenberg I get unnecessary spaces #17302

SchneiderSam opened this issue Sep 2, 2019 · 3 comments · Fixed by #17470

Comments

@SchneiderSam
Copy link

When I import a text from a PDF into Gutenberg I get unnecessary spaces. Example:
cbSBHX6zOU

And the Screenshot:

Screenshot_2

This distance makes sense if I want to insert a new sentence after an existing one. However, if I add a new paragraph, this space is superfluous.

Describe the solution you'd like
When a new paragraph/block is inserted, there should be no space at the beginning.

Describe alternatives you've considered
I don't know

cc: @ellatrix

@paaljoachim
Copy link
Contributor

Thanks for adding this issue SchneiderSam. I have also noticed an extra character before pasted text most of the time.

@ellatrix
Copy link
Member

ellatrix commented Sep 3, 2019

Thanks for the report. The solution would be to trim the spaces in the raw handler. Right now, the spaces should collapse on the front-end though.

@SchneiderSam
Copy link
Author

If that fits the frontend, that's great. It would be nice if it is the same in the editor. Sorry for these little things...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants