[wp-trac] [WordPress Trac] #11144: WP importer strips whitespace at EOL, problem with Markdown

WordPress Trac wp-trac at lists.automattic.com
Thu Dec 24 20:01:39 UTC 2009


#11144: WP importer strips whitespace at EOL, problem with Markdown
--------------------------+-------------------------------------------------
 Reporter:  demetris      |       Owner:             
     Type:  defect (bug)  |      Status:  new        
 Priority:  normal        |   Milestone:  3.0        
Component:  Import        |     Version:  2.9        
 Severity:  normal        |    Keywords:  needs-patch
--------------------------+-------------------------------------------------

Comment(by demetris):

 The issue seems to be related to an rtrim() (unsurprisingly) — in
 particular, the first of the two instances of rtrim() in the importer:

 http://core.trac.wordpress.org/browser/trunk/wp-admin/import/wordpress.php

 I have no idea what that line does and why it uses rtrim() (this stuff is
 too complex for me).  Removing the rtrim() from there makes the importer
 preserve the whitespace at EOLs, but it has a side-effect too:  all LFs
 are duplicated.  (So, too much white space, and no line breaks AT ALL any
 more, either with Markdown or with wpautop().)

 That’s as far as my investigation can go. :-)

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


More information about the wp-trac mailing list