Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

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

    Help wanted · · · – – – · · ·
    2
    6
    2340
    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 ageer
      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 Kilborn 1 Reply Last reply Reply Quote 0
      • Alan Kilborn
        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 ageer
          mahesh ageer last edited by

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

            This post is deleted!
            1 Reply Last reply Reply Quote 0
            • mahesh ageer
              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 Kilborn 1 Reply Last reply Reply Quote 0
              • Alan Kilborn
                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
                Copyright © 2014 NodeBB Forums | Contributors