Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Spaces are lost around wrapped line

See original GitHub issue

On 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.

screen recording 2018-09-26 at 12 08 32

Relevant system information:

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:closed
  • Created 5 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

JohnMcLearcommented, Mar 14, 2020

Confirmed. This is a horrible bug, probably due to pre-wrap setting.

muxatorcommented, Apr 7, 2020

Merged fix. Thanks @JohnMcLear and @seballot.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Get rid of extra space in cell when using Text Wrap - Super User
Apparently word wrap messes up with particular cell values and particular widths. Try different widths until auto-sizing the height gets rid of ...
Read more >
Wrapping long lines that contain no spaces - TeX
Welcome to! A tip: If you indent a line by 4 spaces, then it's marked as a code sample. – Hendrik Vogt....
Read more >
Inline-block line-wrap extra space - Stack Overflow
I've got an inline-block element that contains a very long word. When I resize the viewport until I reach the breakpoint of the...
Read more >
white-space - CSS-Tricks
White space is honored exactly as it is in the HTML and the text does not wrap until a line break is present...
Read more >
Is there a way to turn off 'Wrap Trailing Spaces to Next Line'
Select the lines that contain spaces you want to delete and center the lines by pressing Ctrl+E, or clicking the Center button in...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found