Details
-
Bug
-
Resolution: Fixed
-
Medium
-
3.9.0alpha1, 4.2.0
-
None
Description
When pasting html from websites extra empty paragraphs are added between paragraphs.
This is caused by the line breaks handling in ezxmltext/handlers/input/ezoexmlinput.php for non Trident (IE) browsers, ref:
$text = preg_replace( "/[\n\t]/", ' ', $text);
Should / could instead be:
$text = str_replace( "\n", '', $text); $text = str_replace( "\t", ' ', $text);
Steps to reproduce
Steps to reproduce:
- Create/edit a folder
- Paste text with line breaks into ezoe from http://www.lipsum.com/feed/html for instance - looks OK
- Click "Store draft" - line breaks are duplicated, this is the bug!
- Click "Store draft" again - duplicate line breaks are removed IF content.ini[paragraph]AllowEmpty is disabled (false).