https://bugzilla.wikimedia.org/show_bug.cgi?id=54964

       Web browser: ---
            Bug ID: 54964
           Summary: VisualEditor: Outer whitespace of first/last node in
                    document not validated
           Product: VisualEditor
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: Data Model
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected]
    Classification: Unclassified
   Mobile Platform: ---

Because we don't store the inner whitespace of the document, we can't validate
the outer whitespace its first/last children.

1. Create document with wikitext:
==Heading==
Foo
2. Delete 'Heading' and the empty line
3. You now have:
[{'type':'paragraph', 'internal': {'whitepsace': ['\n']}}, 'F' ....
in the DM
4. This serialises to
\n
Foo

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to