[Editing] Append extra line break if the paragraph ends
with or without any layout content.
When the paragraph contains some content followed by a comment or
any element which doesn't have a layout object and the copy
operation is executed, the content copied does not contain extra
new line break character after the paragraph that contained element
which didn't have layout object.
This happens because the element does not have any layout object
and when the iterator iterates through the last text node in a
paragraph, it appends extra newline only when the text node has
a layout object. Thus, the condition where the |ExitNode| is called
only when the last child has a layout object is removed and it
should be called for every last child. This helps to add extra
newline after the paragraph and fixes the bug.
Bug: 41350470
Change-Id: I8242a354977ac5a76a99972156c54d4a646f9eb0
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5707431
Commit-Queue: Pranav Modi pranavmodi@microsoft.com
Reviewed-by: Kent Tamura tkent@chromium.org
Reviewed-by: Sanket Joshi sajos@microsoft.com
Cr-Commit-Position: refs/heads/main@{#1332960}