Community
    • Login

    Blank lines

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    9 Posts 2 Posters 1.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.
    • K
      khai29382
      last edited by

      How to add blank line in the end of like a paragraph
      This is what im working with
      .a95b1619-a067-4282-a330-37713cd20631-image.png

      And when i do this command
      7d94a058-7b62-4058-8e0f-00a40d54dab6-image.png

      It comes out like this
      378fb0e5-1473-4466-9355-720302f46944-image.png

      But what I want is to end up like this
      29b97e8c-cea4-474d-8e6d-04b253592944-image.png
      Just one blank line at the end of each paragraph

      So im asking, whats the command to do what i want

      Neil SchipperN 1 Reply Last reply Reply Quote 0
      • Neil SchipperN
        Neil Schipper @khai29382
        last edited by

        @khai29382 Hi. If you turn on “Show all characters” (backward P on toolbar, or View - Show Sym - Show All) and your lines end with CRLF, then, Find \r\n\r\n and Replace with \r\n\r\n\r\n and you should be good.

        If a different line ending is in use, state what you see for further assistance.

        K 3 Replies Last reply Reply Quote 0
        • K
          khai29382 @Neil Schipper
          last edited by

          @neil-schipper how lessen the blank lines by 1, only want 2

          1 Reply Last reply Reply Quote 0
          • K
            khai29382 @Neil Schipper
            last edited by

            @neil-schipper oh nvm tysm

            1 Reply Last reply Reply Quote 0
            • K
              khai29382 @Neil Schipper
              last edited by

              @neil-schipper also how to put numers on top like this a8c8369e-ee81-43fc-958b-6357ac2fd0c3-image.png

              whats the command

              Neil SchipperN 1 Reply Last reply Reply Quote 0
              • Neil SchipperN
                Neil Schipper @khai29382
                last edited by

                @khai29382 I would do this with a multi step process.

                1. Convert all occurrences of adjacent non-empty lines (which you’ve called paragraphs but are better described as blocks) to single lines using something like what is described here (note F&R mode change) except replace newlines with a unique (to your file) marker like TEMP_NEWLINE_MARKER. Now each block is a single (maybe long) line containing markers.
                2. Convert all occurrences of double newlines to single newlines (F&R mode should go from Regular Expr back to Extended). Now all lines are adjacent, there are no empty lines.
                3. Using Edit | Column Editor, insert the (same) marker (as in prior step) at the start of each line; no dead space before or after. (You may find link in next step helpful.)
                4. Insert a column of increasing numbers as described in this thread. So now every block has a leading number.
                5. Convert every newline to 2 or 3 (etc.) newlines based on the block spacing you want.
                6. Convert every occurrence of the marker text into a single newline.

                Have fun. If an operation doesn’t work as you hoped, think about why and, use Ctl-z to undo, and then try something a little different.

                K 1 Reply Last reply Reply Quote 1
                • Neil SchipperN Neil Schipper referenced this topic on
                • K
                  khai29382 @Neil Schipper
                  last edited by

                  @neil-schipper cant do the first step cause it will not work as it should

                  Neil SchipperN 2 Replies Last reply Reply Quote 0
                  • Neil SchipperN
                    Neil Schipper @khai29382
                    last edited by

                    @khai29382 I have no solution that doesn’t require effort on your part.

                    1 Reply Last reply Reply Quote 1
                    • Neil SchipperN
                      Neil Schipper @khai29382
                      last edited by Neil Schipper

                      @khai29382 Oops. I goofed. Link in step 1 is this!

                      1 Reply Last reply Reply Quote 1
                      • First post
                        Last post
                      The Community of users of the Notepad++ text editor.
                      Powered by NodeBB | Contributors