Notes in exported lists contain extraneous newlines even after the newlines have been removed

Steps to reproduce

In a new document:

  1. Create an item
  2. Use Shift-Enter to edit note
  3. Add a single line of text, no trailing newline
  4. Add some child nodes (I presume the problem happens without them, but is most dramatic when there are child nodes)
  5. Export created node and observe, child nodes appear directly after Note
  6. Edit note, add a newline (Must press enter twice. The first doesnā€™t add a visible newline, the second does, both are visible in export)
  7. Export again, observe space between note and child nodes (2 lines)
  8. Edit note, remove newline (Note no extra whitespace is
  9. Export again, space between note and children remains, despite removal of newline

Expected result

What do you expect to see after carrying out the steps above?

That a node note should have no extra whitespace that is not shown in the editor.

The requirement to press Enter twice to get a blank line is also mysterious. It only appears to apply to the first line, and then only the first time you try to do it.

Actual result

Instead of the expected result, what happened?

Screen shots attached above, exported note contains extra whitespace that is not visible in editor

Environment

Win10, Chrome 61

I think it might has something to do with this issue: Down arrow at end of second to last line skips last line

How Chrome (or Chromium in general) deals with newlines has caused a whole host of bugs, and unfortunately thereā€™s not much we can do about it :frowning:

Hi @Joel_Madigan, weā€™re cleaning up the bugs and would like to know if the bug is still happening to you? If not weā€™ll close this bug.