Community
    • Login

    Space indentation dissappears when saving .vb file on lines following a )

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    indentation
    2 Posts 2 Posters 1.1k Views 2 Watching
    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.
    • Clayton MoudyC Offline
      Clayton Moudy
      last edited by

      When I save a .vb (visual basic) file that has a line that ends with a ) (closing parentheses) notepad++ removes all the spaces to the left.
      for example this…
      ##two) spaces
      ###three spaces)
      ####four spaces
      #####five spaces
      no spaces
      #one space
      ##two spaces)
      ###three spaces
      ####four spaces
      #####five

      becomes this…
      ##two) spaces
      ###three spaces)
      four spaces
      #####five spaces
      no spaces
      #one space
      ##two spaces)
      three spaces
      ####four spaces
      #####five

      I have two computers with notepad++ and one has this behavior while the other does not.

      1 Reply Last reply Reply Quote 0
      • PeterJonesP Offline
        PeterJones
        last edited by

        @Clayton-Moudy ,

        It’s going to be hard for us to debug, given the few details you’ve given. The more you can tell us, the easier it is for us to help you.

        I’ve had to guess at your input file. (In this forum when you post, you can just prefix four more spaces on the quoted material, and the forum will properly mark it as preformatted code, so it’s easily set apart. I also included a comment-line… and will possibly need a first line that doesn’t indent)

        # comment-line with no extra spaces to align forum formatting
          two) spaces
           three spaces)
            four spaces
             five spaces
        no spaces
         one space
          two spaces)
           three spaces
            four spaces
             five
        # blank line to align forum formatting
        

        Other than the # lines, is that an accurate representation of your file?

        What is the difference between the two computers? Could you grab the ? > Debug Info > copy for each computer’s Notepad++, and paste in a reply – and mark which one does it right, and which does it wrong? What other settings are different between the NPP installations on each?

        1 Reply Last reply Reply Quote 0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • First post
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors