Community
    • Login

    Trim Leading Space Doesnt Work

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    7 Posts 3 Posters 894 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.
    • Alejandro AlvarezA
      Alejandro Alvarez
      last edited by Alejandro Alvarez

      Hi,
      I’m trying to use Edit -> Blank Operations -> Trim Leading Space.
      Like syhown in this video https://www.youtube.com/watch?v=TgySl7VLCUQ
      But for some reason it doesnt do anything for me… I click it and nothing happens, Tried using it with the text selected, With it not selected but still doesnt do anything, I’m using the latest version.

      Thanks in advance!

      Alan KilbornA 1 Reply Last reply Reply Quote 0
      • Alan KilbornA
        Alan Kilborn @Alejandro Alvarez
        last edited by Alan Kilborn

        @Alejandro-Alvarez said in Trim Leading Space Doesnt Work:

        I’m using the latest version.

        I guess if someone reads this 3 years from now, looking for a solution to a similar problem, saying it that way is really nonsensical; it really would be best to say v8.4.7 (assuming that is what you mean).


        trying to use Edit -> Blank Operations -> Trim Leading Space
        Tried using it with the text selected, With it not selected but still doesnt do anything

        Trim Leading Space is currently a file-wide operation, meaning that it won’t act on the current selection if there is one.

        It works fine for me in 8.4.7, so maybe provide more detail on your exact data (reference Formatting Forum Posts), and exactly what you are doing.

        Alejandro AlvarezA Alan KilbornA 2 Replies Last reply Reply Quote 0
        • Alejandro AlvarezA
          Alejandro Alvarez @Alan Kilborn
          last edited by

          @Alan-Kilborn
          I have a long text file that has many leading spaces like this:

          4
               Inf 795
               Sup 793
                 Izq 1923
                  Der 1923
          5
                   Inf 799
                   Sup 800
                    Izq 1920
                     Der 1920
          
            6.    
                     Inf 800
                      Sup 800
                        Inz 2010
                         Der 2007
          
          7.        
                         Inf 797
                          Sup  800
                           Izq 2090
                            Der 2093
          
          

          I want to get rid of the Leading Spaces

          Alan KilbornA 1 Reply Last reply Reply Quote 0
          • Alan KilbornA
            Alan Kilborn @Alejandro Alvarez
            last edited by Alan Kilborn

            @Alejandro-Alvarez

            I took:

            c71638fc-5c63-4ca6-b82c-6db8fefb071b-image.png

            And did:

            84bb0ece-d105-467a-9b52-62b543275f6c-image.png

            And obtained:

            86807989-8ebf-4042-b3df-c81ea3396d7b-image.png


            But you can also do it like this:

            8d1e6439-0481-40b4-a671-9d5e26888521-image.png

            To obtain:

            5ae02b64-3ac2-4ebe-9eda-499434226bb1-image.png

            1 Reply Last reply Reply Quote 4
            • Alan KilbornA
              Alan Kilborn @Alan Kilborn
              last edited by

              @Alan-Kilborn said in Trim Leading Space Doesnt Work:

              Trim Leading Space is currently a file-wide operation, meaning that it won’t act on the current selection if there is one.

              I created an ISSUE so that this gets the attention of the developers. Hopefully they will change the software so that a selection made before the command execution will cause the command to act only upon selected lines.

              Alejandro AlvarezA 1 Reply Last reply Reply Quote 2
              • Alejandro AlvarezA
                Alejandro Alvarez @Alan Kilborn
                last edited by

                @Alan-Kilborn
                The regex method worked but the trim leading space option doesn’t, with or without selection… any plugin needs to be installed for it to work?

                PeterJonesP 1 Reply Last reply Reply Quote 0
                • PeterJonesP
                  PeterJones @Alejandro Alvarez
                  last edited by

                  @Alejandro-Alvarez said in Trim Leading Space Doesnt Work:

                  @Alan-Kilborn
                  The regex method worked but the trim leading space option doesn’t, with or without selection… any plugin needs to be installed for it to work?

                  No, no plugin. It works just fine natively in Notepad++.

                  Some scatter-debug suggestions:

                  • Can you share your ?-menu Debug Info?
                  • Also, can you share a screenshot when the View > Show Symbol > Show all characters… (maybe it’s not actual spaces at the beginning, though then the regex wouldn’t work).
                  • What are your Settings > Preferences > Editing > Line Wrap set at? Maybe you just have wrapped lines, so what you see as the beginning of the line is really the middle of a wrapped line.
                  • Another idea: try downloading a portable copy of Notepad++ and seeing if that works better for you than your installed Notepad++. If so, maybe a plugin has messed up Notepad++, or your installation is corrupted somehow.
                  1 Reply Last reply Reply Quote 2
                  • First post
                    Last post
                  The Community of users of the Notepad++ text editor.
                  Powered by NodeBB | Contributors