wordpress-mobile / WordPress-Editor-Android

⛔️ [DEPRECATED] A reusable Android rich text editor component.
GNU General Public License v2.0
188 stars 50 forks source link

Pressing enter twice creates a single line break in the published post #438

Open rachelmcr opened 8 years ago

rachelmcr commented 8 years ago

Expected behavior

Pressing enter should display a paragraph break. Pressing enter twice should display two paragraph breaks, and the published post should either add a non-breaking space in each new paragraph (to preserve those extra paragraph breaks — this is the Calypso web editor behavior) or remove any extra paragraphs with no text.

Actual behavior

Pressing enter twice displays two paragraph breaks, but after publishing or updating the post the space is collapsed into a single line break.

Screenshots

Pressing enter twice:

Extra paragraph break

After tapping Update on the post:

Extra paragraph break updated

Tested on Nexus 9, Android 6.0.1, WPAndroid alpha-16

Reported for WPAndroid 5.5 in 116297-h