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

--- Comment #3 from [email protected] ---
commit 8fa522eb2652dac8b091240037ff076db1088eec
Author: Subramanya Sastry <[email protected]>
Date:   Tue Oct 29 13:28:12 2013 -0500

    Bunch of improvements and tweaks to selser/wt2wt sep handling

    .... <snip> ....

    WikitextSerializer (selser)
    ---------------------------
    * Stripping leading/trailing separators on original source of
      a selsered node is unnecessary (and actually buggy). Our DSR
      computation is tight, that is, DSR ranges for a DOM node does
      not surround leading or trailing newlines. So, the original
      source will not have any leading or trailing newlines from
      separators outside the node itself. Newline separators found
      in the DOM subtree apply to parent--firstchild and
      lastchild--parent pairs, and they ought to continue to be
      present when selser outputs the original source.

      Since this is being done on a node with valid DSR that has
      not been modified, not even the wrapper node could have been
      modified -- the entire subtree is completely unedited.
      So, HTML --> wikitext edits of wrappers will not go through
      this code route either.

      This simplifies the selser code path some more and also
      gets a whole bunch of new selser tests passing.

   .... <snip> ....

-- 
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