Community
    • Login

    How to add only one space at end of each line ?

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    6 Posts 2 Posters 7.4k Views
    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.
    • mahesh ageerM Offline
      mahesh ageer
      last edited by

      1.How to give only one space at end each line after text
      2 .Repeat step 1 end of file
      Thanks for your answer in advance

      Alan KilbornA 1 Reply Last reply Reply Quote 0
      • Alan KilbornA Offline
        Alan Kilborn @mahesh ageer
        last edited by

        @mahesh-ageer

        Set your Search Mode to Regular expression and search for $ and replace with a single space.

        1 Reply Last reply Reply Quote 1
        • mahesh ageerM Offline
          mahesh ageer
          last edited by

          This post is deleted!
          mahesh ageerM 1 Reply Last reply Reply Quote 0
          • mahesh ageerM Offline
            mahesh ageer @mahesh ageer
            last edited by

            This post is deleted!
            1 Reply Last reply Reply Quote 0
            • mahesh ageerM Offline
              mahesh ageer
              last edited by

              Thanks for your solution its working but small difference i did to make it more perfect .
              Step 1.Edit->Blank Operations->Trim Trailing Space->Enter
              Step 2. cntr+F ->First keep search mode -‘regular expression’ and go to replace
              label(Find what) – $
              label(Replace with) --keep one space here(based on your requirement)

              Alan KilbornA 1 Reply Last reply Reply Quote 0
              • Alan KilbornA Offline
                Alan Kilborn @mahesh ageer
                last edited by

                @mahesh-ageer

                You didn’t say anything about lines that already had some amount of spaces at their ends. Try to be complete with your problem description.

                I might be inclined to do that all in one step by searching for \x20*$ and replacing that with a single space.

                1 Reply Last reply Reply Quote 2

                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