Subramanya Sastry has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/393838 )

Change subject: Add lead section before resolving template-section conflicts
......................................................................

Add lead section before resolving template-section conflicts

* Should fix a bunch of crashers seen in round trip testing

Change-Id: I5238f18dfd54c78f94090b072a8892f70124f294
---
M lib/wt2html/pp/processors/wrapSections.js
1 file changed, 3 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/services/parsoid 
refs/changes/38/393838/1

diff --git a/lib/wt2html/pp/processors/wrapSections.js 
b/lib/wt2html/pp/processors/wrapSections.js
index abace33..99f1947 100644
--- a/lib/wt2html/pp/processors/wrapSections.js
+++ b/lib/wt2html/pp/processors/wrapSections.js
@@ -299,11 +299,13 @@
                },
        };
        wrapSectionsInDOM(state, leadSection, rootNode);
-       resolveTemplateSectionConflicts(state);
 
        // There will always be a lead section, even if sometimes it only
        // contains whitespace + comments.
        rootNode.insertBefore(leadSection.container, rootNode.firstChild);
+
+       // Resolve template conflicts after all sections have been added to the 
DOM
+       resolveTemplateSectionConflicts(state);
 }
 
 module.exports = {

-- 
To view, visit https://gerrit.wikimedia.org/r/393838
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I5238f18dfd54c78f94090b072a8892f70124f294
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/services/parsoid
Gerrit-Branch: master
Gerrit-Owner: Subramanya Sastry <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to