• Login
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.
  • M
    mahesh ageer
    last edited by Feb 9, 2020, 2:35 PM

    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

    A 1 Reply Last reply Feb 9, 2020, 2:43 PM Reply Quote 0
    • A
      Alan Kilborn @mahesh ageer
      last edited by Feb 9, 2020, 2:43 PM

      @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
      • M
        mahesh ageer
        last edited by Feb 9, 2020, 2:55 PM

        This post is deleted!
        M 1 Reply Last reply Feb 9, 2020, 3:00 PM Reply Quote 0
        • M
          mahesh ageer @mahesh ageer
          last edited by Feb 9, 2020, 3:00 PM

          This post is deleted!
          1 Reply Last reply Reply Quote 0
          • M
            mahesh ageer
            last edited by Feb 9, 2020, 4:38 PM

            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)

            A 1 Reply Last reply Feb 9, 2020, 5:11 PM Reply Quote 0
            • A
              Alan Kilborn @mahesh ageer
              last edited by Feb 9, 2020, 5:11 PM

              @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
              1 out of 6
              • First post
                1/6
                Last post
              The Community of users of the Notepad++ text editor.
              Powered by NodeBB | Contributors