GWicke has submitted this change and it was merged.
Change subject: Fix template wrapping to merge overlapping templates.
......................................................................
Fix template wrapping to merge overlapping templates.
* When the end-range of one template is identical to the start-range
of another template, the two template are merged for rt-ing
purposes since the two cannot be rt-ed separately in an accurate
manner in all scenarios.
* This lets us RT examples like (all of which didnt RT before this fix)
- {{echo|''a}}{{echo|b''c''d}}{{echo|''e}}
- {{IAST|''foo}} {{IAST|''bar''}} {{IAST|''baz''}}
- a<div>b{{echo|c</div>d}}e
These examples have now been added to parser tests and we get +3 in
green tests on parserTests.txt run.
* en:Advaita_Vedanta RT's much more cleanly with this fix.
Extra:
* Fixed some JSHint errors/warnings.
Change-Id: I3e58a8faf8d3257fec0cdd8a3cc57e4ca74bc58f
---
M js/lib/mediawiki.DOMPostProcessor.js
1 file changed, 66 insertions(+), 34 deletions(-)
Approvals:
GWicke: Verified; Looks good to me, approved
jenkins-bot: Verified
--
To view, visit https://gerrit.wikimedia.org/r/28050
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I3e58a8faf8d3257fec0cdd8a3cc57e4ca74bc58f
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Parsoid
Gerrit-Branch: master
Gerrit-Owner: Subramanya Sastry <[email protected]>
Gerrit-Reviewer: GWicke <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits