Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Added handling for loading <p><br></p> #1808

Merged
merged 3 commits into from
Nov 15, 2019
Merged

Added handling for loading <p><br></p> #1808

merged 3 commits into from
Nov 15, 2019

Conversation

Reinmar
Copy link
Member

@Reinmar Reinmar commented Nov 14, 2019

Suggested merge commit message (convention)

Type: Fixed a bug when pasting or loading <p><br></p> would create two lines. Closes ckeditor/ckeditor5#5564.

@coveralls
Copy link

coveralls commented Nov 14, 2019

Coverage Status

Coverage remained the same at 100.0% when pulling c860684 on i/5564 into 8f33684 on master.

Copy link
Contributor

@jodator jodator left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've found two typos that changed meaning of the tests.
The second thing is WDYT about adding and explicit check that the data produced by this special case is self-compatible?

The current test checks only downcast conversion AFAIK (setting model in the test) So I'm not sure if this is enough (I feel that I might be missing something here) as I see that this bug touches how DOMConverter handles block fillers and those checks are during upcast conversion.

tests/view/domconverter/domconverter.js Outdated Show resolved Hide resolved
tests/view/domconverter/domconverter.js Outdated Show resolved Hide resolved
tests/tickets/5564.js Show resolved Hide resolved
@Reinmar Reinmar requested a review from jodator November 15, 2019 15:07
@Reinmar
Copy link
Member Author

Reinmar commented Nov 15, 2019

I fixed those issues.

@jodator jodator merged commit 4105fe2 into master Nov 15, 2019
@jodator jodator deleted the i/5564 branch November 15, 2019 15:46
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Pasting <p><br></p> Inserts Two New Lines
3 participants