• 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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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.

    Thread Starter seedpxwee5

    (@seedpxwee5)

    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?

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Line breaks in Template all missing!’ is closed to new replies.