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

WordPress Trac wp-trac at lists.automattic.com
Fri Apr 20 02:59:55 UTC 2012


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

Comment (by azaozz):

 Replying to [comment:17 kurtpayne]:
 > How does !WordPress know how to restore the original line endings...

 And what are the original line endings anyways? Most core files have `\n`
 EOLs, seems many plugins have `\r\n` EOL and themes generally have `\n`
 EOL (depending on the OS preferences of the authors).

 Thinking we should standardize on either one or the other. A good criteria
 would probably be to determine on which platform non-native EOLs would
 cause more problems. i.e. Notepad on Windows vs. TextEdit on MacOS. As far
 as I can see TextEdit "understands" `\r\n` EOLs and Notepad doesn't
 understand `\n`, so `\r\n` seems as the proper default.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/9716#comment:18>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list