Support » Fixing WordPress » Built-in text editor adds extra line breaks on save

  • I tried searching here and with google but no luck. Why do the built-in plugin and theme editors add extra blank lines with every save….

    For example,

    code
    code
    code

    would become

    code

    code

    code

    upon saving with the built in editor…

Viewing 3 replies - 1 through 3 (of 3 total)
  • It is because of carriage returns. When the file is saved it is saved with /r/n which normally in windows means one break like the first example you have but on this it is used to either just /r or just /n so when you put both together you get two breaks.

    Open it up in a hex editor and get rid of them and that should do the trick.

    Ok…so it is just an annoying idiosyncrasy that cannot be fixed? Sometimes when making a quick change it is nice to use the built in editors, but then it makes clean up a pain when I finally open the files in a regular text editor after several edits from WordPress….

    I have the exact same problem!!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Built-in text editor adds extra line breaks on save’ is closed to new replies.