MT Importer truncates double vertical spaces, munging paragraphs together
|Reported by:||novasource||Owned by:|
Movable Type 3.x-era exports don't use <p> tags. Like TinyMCE (and WordPress), a <p> in final rendered code is represented by two \ns in a row.
The importer strips out double \ns and replaces with a single \n. This causes paragraphs to lose their distinction upon import.
It does this because the $line variable was created by $line = $this->fgets($handle) (line 339). Then $line = trim($line) (line 340) strips out several characters, including \n.
Lines 455 and 456 add back the \n except on blank lines:
if( !empty($line) ) $line .= "\n";
So if a $line was nothing but a \n, it's stripped by the trim function and becomes a 0 character line. Then the if( !empty($line) ) declines to add back a \n.
Somehow this needs to be altered so that successive \ns aren't stripped. Otherwise paragraphs get vertically munged together.
Change History (13)
- Milestone set to WordPress.org
- Resolution invalid deleted
- Status changed from closed to reopened
- Version 3.0.4 deleted
23 months ago
- Keywords reporter-feedback added
- Severity changed from major to normal