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: esand...@wikimedia.org
          Reporter: esand...@wikimedia.org
                CC: jforres...@wikimedia.org, roan.katt...@gmail.com,
                    tpars...@wikimedia.org
    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
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to