Details
-
Bug
-
Resolution: Obsolete
-
Medium
-
4.3.0, 4.4.0
-
None
-
eZ Publish 4.3 with OE 5.2
eZ Publish 4.5 with OE 5.1
Description
When a paragraph starts with a single space and then some text, the space is saved as an nbsp, though a normal space is enough.
This bit in ezoexmlinput.php seems related, but removing it does not change behavior, so perhaps not.
if ( $tagContent[0] === ' ' && !$tag->previousSibling )//- Fixed "first space in paragraph" issue (ezdhtml rev.12246) { $tagContent[0] = ';'; $tagContent = ' ' . $tagContent; }
Steps to reproduce
- Edit an ezxmltext attribute with OE
- Make a paragraph, enter a space and then some text
- See in the database that the paragraph is saved as
<paragraph>&nbsp;some text</paragraph>
- Expected:
<paragraph> some text</paragraph>