BoostIO / BoostNote-Legacy

This repository is outdated and new Boost Note app is available! We've launched a new Boost Note app which supports real-time collaborative writing. https://github.com/BoostIO/BoostNote-App
Other
17.06k stars 1.47k forks source link

Text fragments in Italics lose space characters when Paste Smartly is used #2826

Open machetto opened 5 years ago

machetto commented 5 years ago

Current behavior

When Smartly Paste is used to paste text in Italics from Chrome (when copied from Firefox, all works fine), it loses space characters at the beginning and at the end. So for example if I copy the following text:

"Almost nobody realizes this, but light doesn't move. It sits at the same invariant 4D location, and mass speeds past it at c, toward future time".

it appears as follows when copy/pasted:

Almost nobody realizes this, but_light doesn't move._It sits at the same invariant 4D location, and mass speeds past it at c, toward future time.

Expected behavior

It should appear as follows when copy/pasted:

Almost nobody realizes this, but _light doesn't move._ It sits at the same invariant 4D location, and mass speeds past it at c, toward future time.

Steps to reproduce

Copy any text with Italics and then Smartly Paste it into a new note.

Environment

Windows 10 1703 Chrome Version 64.0.3282.140 (Official Build) (64-bit)

Flexo013 commented 4 years ago

Still present in Boostnote Legacy 0.15.3 with Chrome 83.0.4103.116 (64-bit)