Forums

Line breaks in Template all missing! (4 posts)

  1. seedpxwee5
    Member
    Posted 1 year ago #

    I am not sure if I am alone or what but recently I have had a few of my template files all become unreadable because all the line breaks were missing.

    For eg. This is what it was supposed to look like

    <div class="showcase-content">
      <div>lalala
        <div class="showcase-caption">
          This is a caption
        </div>
      </div>
    </div>

    But it became like this

    <div class="showcase-content">   <div>lalala    <div class="showcase-caption">      This is a caption    </div> 	  </div></div>

    I am using
    Wordpress v3.0.1
    FileZilla v3.3.4.1
    Notepad ++

    If anybody knows the solution to this please shed some light on this bug. Now many of my template files are like that and it is nearly impossible to read them at all.

  2. ClaytonJames
    Member
    Posted 1 year ago #

    I hesitate to think of it as a bug. I will assume that you are seeing this behavior while trying to edit files in Notepad++.

    Go to the Notepad++ tool bar and turn on word wrap. See if that changes anything first. Toolbar > View > Word wrap.

  3. seedpxwee5
    Member
    Posted 1 year ago #

    Actually I am seeing this behavior in all editors
    - Notepad
    - Notepad++
    - WordPress Editor

    It is already word wrapped in Notepad++ so it looks like

    <div class="showcase-content">   <div>lalala    <div class="showcase-caption">
          This is a caption    </div> 	  </div></div>

    Much harder to read than normal LOL

    Any ideas as to what caused this to happen in the first place?

  4. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    Check the configuration/preferences for your chosen text editor and ensure that it is configured to preserve line breaks when saving a file.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.