Community
    • Login

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

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

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

            This post is deleted!
            1 Reply Last reply Reply Quote 0
            • mahesh ageerM
              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
                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
                • First post
                  Last post
                The Community of users of the Notepad++ text editor.
                Powered by NodeBB | Contributors