Preserve initial space for HTML element if there is no text node in parent element #791
Labels
status:confirmed
An issue confirmed by the development team.
support:2
An issue reported by a commercially licensed client.
type:bug
A bug.
Are you reporting a feature request or a bug?
Bug. This issue is related to #605 .
Provide detailed reproduction steps (if any)
Source
button<p><span> lorem </span>ipsum</p>
Source
buttonExpected result
There is an empty space before text
lorem
:<p><span> lorem </span>ipsum</p>
Actual result
An empty space has been missed before
lorem
text.<p><span>lorem </span>ipsum</p>
Please note, if you put any word before
span
element, like:<p>lorem<span> lorem </span>ipsum</p>
it works fine.Other details
This is a core issue. It's happening because of code https://github.com/ckeditor/ckeditor-dev/blob/master/core/htmlparser/fragment.js#L401
The text was updated successfully, but these errors were encountered: