Spaces are lost around wrapped line
See original GitHub issueOn my hosted etherpad-lite instance, I have the issue that spaces typed at the beginning of a wrapped line are being ignored, leading to the last word of the previous line and the new word wrapping without a space between them.
I made a recording of this problem. This is on a newly created pad. Both times, I type <space><s><e><e><s><space>
. With the default text in place, this works, but after erasing everything I typed and typing the same sequence again, the leading space gets dropped.
Relevant system information:
- Etherpad-Lite: from git at https://github.com/ether/etherpad-lite/commit/2a5e87cc7da748da94d1169df2a470b6406b65b9 (most recent commit in
develop
) - Client OS: macOS 10.14 (18A391) Mojave
- Browser: Google Chome Version 69.0.3497.100 (Official Build) (64-bit)
- Host OS: CentOS 7, shared hosting
- npm: 5.6.0
- node: v8.11.3
Steps to reproduce: Open a new or existing pad, start typing a space followed by other characters with the cursor at the beginning of a wrapped line.
What did you expect to happen? The last word of the previous line stays in the previous line, the new word starts at the current cursor position.
What actually happened? The line break is removed, merging the last word of the previous line and the new word without a space even though it was entered.
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (7 by maintainers)
Top GitHub Comments
Confirmed. This is a horrible bug, probably due to pre-wrap setting.
Merged fix. Thanks @JohnMcLear and @seballot.