GWicke has submitted this change and it was merged.

Change subject: Retain TSR on <li> + special tag-width computation if no TSR.
......................................................................


Retain TSR on <li> + special tag-width computation if no TSR.

* Update list handler to not lose tsr when available.

* Updated DSR computation to not update dsr[0] to a new value
  when tsr[0] is valid.

* Backup code for situations when tsr is missing:
  - The tag width for a list element is the list nesting level
    except when it happens to be the first child of the list and
    on a longer nested path (ex: the 1st,2nd,3rd bullets in ****a)

* Verified DSR on the following examples with/without tsr:
  - *a\n**b\n***c\n****d
  - *a\n***b\n**c\n****d\n**e\n*f
  - ****a\n****b

* No change in parser tests.

Change-Id: Ib19c4c4c8c0b5d5d29d697f3cc5ef411d14eb68f
---
M js/lib/ext.core.ListHandler.js
M js/lib/mediawiki.DOMPostProcessor.js
2 files changed, 74 insertions(+), 41 deletions(-)

Approvals:
  GWicke: Verified; Looks good to me, approved
  jenkins-bot: Looks good to me, but someone else must approve


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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ib19c4c4c8c0b5d5d29d697f3cc5ef411d14eb68f
Gerrit-PatchSet: 3
Gerrit-Project: mediawiki/extensions/Parsoid
Gerrit-Branch: master
Gerrit-Owner: Subramanya Sastry <[email protected]>
Gerrit-Reviewer: GWicke <[email protected]>
Gerrit-Reviewer: Subramanya Sastry <[email protected]>
Gerrit-Reviewer: jenkins-bot

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

Reply via email to