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 non breaking spaces when pasting lists #164

Merged
merged 1 commit into from
Aug 3, 2022

Conversation

daniel-eder
Copy link
Collaborator

When pasting lists from word the pastematcher accidentally generated non breaking spaces between

  • and the the first character in the line.
    trimLeft() on line 15 fixes this.

    Intentional spaces before the first character will also be trimmed (I see no way to differentiate), however this should be a super-rare occurrence when pasting from word, and can still be fixed in the text editor after pasting.

    See Copying bullets from a Word Doc doesn't create bulleted list slab/quill#1225 (comment)

  • When pasting lists from word the pastematcher accidentally generated non breaking spaces between <li> and the the first character in the line.
    trimLeft() on line 15 fixes this.
    
    Intentional spaces before the first character will also be trimmed (I see no way to differentiate), however this should be a super-rare occurrence when pasting from word, and can still be fixed in the text editor after pasting.
    
    See slab/quill#1225 (comment)
    @lakesare lakesare merged commit 89d4188 into master Aug 3, 2022
    @lakesare lakesare deleted the fix/paste-from-word-leading-whitespace branch August 3, 2022 15:31
    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.

    2 participants