Sublime Forum

Word Wrap - strange behavior

#1

Hello,

I’ve found an issue with the word wrap feature. It’s related to spaces and full stop sign “.” - sometimes I can see that they are wrapped and found in the very first column of the next lines, which doesn’t match the way it works in books and other text editors, and which is very confusing.
The way I expect it to work is:

  • space - all the spaces beyond the designated wrap threshold should be discarded
  • full stop sign - it should be treated as an integral part of a word it follows, and it should be wrapped together with the word if it doesn’t fit inside the threshold.

Here are some illustrations. The reproduction is easy, you just need to set “View -> Word Wrap Column” to 70 lines and paste the following lines.

  1. line: "1ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. "
    Actual result:

1: 1ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. 2: ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. 3: ab. Expected result:
same, everything’s fine here

  1. line: "12ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab.
    "
    Actual result:

1: 12ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. 2: ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. <--- here's a space in the first column 3: ab. Expected result:

1: 12ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. 2: ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. <--- space is left in the previous line 3: ab.
3. line: "123ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab.
"
Actual result:

1: 123ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab 2: . ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. <--- here's a "." in the first column 3: ab. <--- here's a space in the first column Expected result:

1: 123ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. 2: ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. ab. <--- the last "ab" is wrapped together with "." 3: ab. ab. <--- space is left in the previous line
I’ve tried many full-screen text editors, but none of them can be compared to a such incredibly cool looking and flexible (even though there’s no UI for many settings) program as this one. I’m very excited to give it a try for writing and coding, and I hope, this issue will be fixed soon.

Good luck,
Xmas

0 Likes

#2

Yes, I too find this behaviour to be an irritation. I have never previously come across a program that leaves orphan spaces or punctuation marks at the beginning of a wrapped line.

Have you come across a solution yet?

John Hewitt

0 Likes