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

Pasting from terminal includes 4 leading spaces #1244

Closed
montlebalm opened this issue Jan 7, 2017 · 0 comments
Closed

Pasting from terminal includes 4 leading spaces #1244

montlebalm opened this issue Jan 7, 2017 · 0 comments

Comments

@montlebalm
Copy link

Pasting text from Terminal.app on macOS includes 4 leading spaces.

I created a fiddle to demonstrate the problem. During paste, the fiddle logs the contents of the clipboard and does a comparison to make sure it's strictly equal to the word "testing" to verify there are no hidden characters.

texty_paste_spaces

Steps for Reproduction

  1. Open Terminal.app
  2. Type the word "testing"
  3. Copy "testing" from terminal
  4. Visit https://jsfiddle.net/montlebalm/ookmgoqj/2/
  5. Paste into the Quill editor

Expected behavior:

The editor contents should only contain the word "testing".

Actual behavior:

The editor's contents are "testing" with 4 leading spaces.

Platforms:

Tested on macOS 10.12.2

  • Broken in Chrome 55.0.2883.95
  • Works in Safari 10.0.2

Version:

Quill version 1.1.9

@montlebalm montlebalm changed the title Pasting from terminal includes leading 4 spaces Pasting from terminal includes 4 leading spaces Jan 7, 2017
@jhchen jhchen closed this as completed in c565ad1 Apr 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants