Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

Soft Wrap doesn't respect word boundaries #11268

Closed

Description

@toasty-sunbeam

Prerequisites

For more information on how to write a good bug report or enhancement request, see the CONTRIBUTING guide.

Description

I'm using Atom to write HTML emails (yay). These include long URLs, so I have Soft Wrap turned on.

soft-wrap

Note how the line gets broken in the middle of the word "Final". There are lots of better places for a line break.

When I go into my Settings, there's an input box for "Non Word Characters"; these characters define word boundaries. It seems to me that it would make sense for Soft Wrap to break lines at word boundaries instead of only at spaces.

Steps to Reproduce

  1. Enable Soft Wrap (in the View menu)
  2. Write a line of text that exceeds the width of the buffer, thus triggering soft wrap. The line should include some of the Non Word Characters: /\()"':,.;<>~!@#$%^&*|+=[]{}?-

Expected behavior: Line wraps at a word boundary.

Actual behavior: Lines wrap only at spaces.

Versions

1.6.0

Activity

  1. toasty-sunbeam commented on Apr 24, 2016

    @toasty-sunbeam
    Author

    This also occurs in normal-length URLs when the window has been split into two panes.

    split window

    I don't think <a deserves its own line here.

  2. lock commented on Mar 30, 2018

    @lock

    This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!

  3. locked and limited conversation to collaborators on Mar 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions