GWicke has submitted this change and it was merged.

Change subject: Additional tweaks and fixes to separator emitting in WTS.
......................................................................


Additional tweaks and fixes to separator emitting in WTS.

* Renamed emittedSeparator to emittedSeparatorFromSrc for clarity.
* Fixed emitNLs in SOL mode to not buffer -- buffering only needed
  in EOL mode.  In SOL mode, we either skip if separator has been
  emitted from source, or emit if not.
* Fixed emitNLs to tell selser that the nls are 'separator' content.
* Fixed emitSeparator to not emit separator when in token collection
  mode -- the separator is converted to a regular token.  Fixes
  RTing of wikitext like this:
----
[[File:boo|thumb|bar [[foo]]   [[baz]]  [[bar]] ]]
----
  and eliminates RT errors in en:Barack Obama.

Change-Id: I27c3351ecae3bd4150c8cd77c2bbe4195d78d2cb
---
M js/lib/mediawiki.WikitextSerializer.js
1 file changed, 31 insertions(+), 17 deletions(-)

Approvals:
  GWicke: Verified; Looks good to me, approved
  jenkins-bot: Checked


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

Gerrit-MessageType: merged
Gerrit-Change-Id: I27c3351ecae3bd4150c8cd77c2bbe4195d78d2cb
Gerrit-PatchSet: 2
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