Community
    • Login

    Join Lines function always create spaces

    Scheduled Pinned Locked Moved General Discussion
    2 Posts 2 Posters 4.8k Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • zhangyuhangkZ Offline
      zhangyuhangk
      last edited by

      1
      2
      3
      

      Select the the above lines and press Ctrl + J. The content is converted to

      1 2 3
      

      Is there any way to get rid of the spaces between the numbers?

      Scott SumnerS 1 Reply Last reply Reply Quote 0
      • Scott SumnerS Offline
        Scott Sumner @zhangyuhangk
        last edited by

        @zhangyuhangk

        Instead of using “Join Lines” you could do a regular expression replace-all operation:

        Find-what box: \R
        Replace-with box: make sure this box is EMPTY
        Search mode: ☑ Regular expression
        ☑ Wrap around (maybe…depending upon what you want…)
        “Join Lines” works on the active selection; if you want the replace operation to do likewise, then: ☑ In selection

        If this posting was useful, don’t post a “thanks”, just upvote ( click the ^ in the ^ 0 v area on the right )

        1 Reply Last reply Reply Quote 0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • First post
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors