Tpt has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/370820 )

Change subject: [VE] Considers that the full wikitext is the body if there is 
no header
......................................................................

[VE] Considers that the full wikitext is the body if there is no header

Change-Id: I915f9e902ff4d173065cc1f9e9973fe3c9d7188d
---
M modules/ve/pageTarget/ve.init.mw.ProofreadPagePageTarget.js
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ProofreadPage 
refs/changes/20/370820/1

diff --git a/modules/ve/pageTarget/ve.init.mw.ProofreadPagePageTarget.js 
b/modules/ve/pageTarget/ve.init.mw.ProofreadPagePageTarget.js
index 1152087..18aa9ba 100644
--- a/modules/ve/pageTarget/ve.init.mw.ProofreadPagePageTarget.js
+++ b/modules/ve/pageTarget/ve.init.mw.ProofreadPagePageTarget.js
@@ -267,7 +267,7 @@
                articleNode.appendChild( sectionNodes[ i ] );
        }
 
-       sectionIndex = 0;
+       sectionIndex = endHeader ? 0 : 1;
        while ( doc.body.firstChild ) {
                sectionNodes[ sectionIndex ].appendChild( doc.body.firstChild );
                if ( sectionNodes[ sectionIndex ].lastChild === endHeader ) {

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I915f9e902ff4d173065cc1f9e9973fe3c9d7188d
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ProofreadPage
Gerrit-Branch: master
Gerrit-Owner: Tpt <thoma...@hotmail.fr>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to