[wp-trac] [WordPress Trac] #9716: WordPress Theme/Plugin editor adds blank lines

WordPress Trac noreply at wordpress.org
Fri Apr 17 18:14:23 UTC 2015


#9716: WordPress Theme/Plugin editor adds blank lines
-------------------------------------+-----------------------------
 Reporter:  Vistronic                |       Owner:
     Type:  defect (bug)             |      Status:  reopened
 Priority:  normal                   |   Milestone:  Future Release
Component:  Themes                   |     Version:  2.7.1
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:
-------------------------------------+-----------------------------

Comment (by qui_gon_jim):

 I too have noticed this behaviour. Sometimes, after a website has gone
 live, our team may make quick small changes to the CSS using the inbuilt
 theme editor, rather than downloading the file and editing it.

 {{{
 /wp-admin/theme-editor.php?file=style.css
 }}}

 When I next download the CSS file, and open it in Notepad or Sublime2,
 every line has an extra \n after it which makes the file larger and harder
 to read. I have tested the editing in Windows Firefox 37.0.1 and Windows
 IE 11 and both of these cause the issue.

 Sometimes I just disable the file editor to stop others using it!

 {{{

 define('DISALLOW_FILE_EDIT', true);
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/9716#comment:24>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list