HomePhabricator

Track newlines between paragraphs separately

Authored by thiemowmde on Aug 20 2018, 4:36 PM.

Description

Track newlines between paragraphs separately

Single line breaks (with no empty line) resulted in actual data loss in
the no-JS view. Only the first line was shown.

3 or more line breaks resulted in empty textareas.

All this is fixed by multiple changes:

  • The text is split in a way that a paragraph can end with 1 or more newline characters.
  • These newlines are part of the paragraph.
  • Additionally the number of newlines is tracked as a number. This means the user can not change them in the textareas.

Bug: T202402
Change-Id: I91babeb854e3398c3cceaecff9b1f04010fa1d1a

Details

Committed
WMDE-FischAug 27 2018, 5:12 PM
Parents
rESCC0046c8708393: Merge "Add an intro tour"
Branches
Unknown
Tags
Unknown
References
refs/changes/56/454056/8
ChangeId
I91babeb854e3398c3cceaecff9b1f04010fa1d1a