Subramanya Sastry has uploaded a new change for review.

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


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Parsoid 
refs/changes/50/28050/1
--
To view, visit https://gerrit.wikimedia.org/r/28050
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I3e58a8faf8d3257fec0cdd8a3cc57e4ca74bc58f
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/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