Subramanya Sastry has uploaded a new change for review.
Change subject: Fixed couple bugs in PreHandler FSM.
......................................................................
Fixed couple bugs in PreHandler FSM.
* When we encounter a token with leading white-space
split into two tokens: leading white-space and the
rest, and push the second token back into the FSM.
This lets us process examples like:
1. {{echo| foo}}
2. {{echo| foo}}{{echo| bar}}
* When encountering a block tag in PRE state, the FSM should
transition to IGNORE state rather than SOL state. Without this
" <div> foo</div>" will insert a <pre> around the foo.
* No change in parser tests: TODO: add more tests, if necessary.
Change-Id: I95d3ef804ea7ced749bf02e216d874dba1c4e541
---
M js/lib/ext.core.PreHandler.js
1 file changed, 23 insertions(+), 10 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Parsoid
refs/changes/36/32136/1
--
To view, visit https://gerrit.wikimedia.org/r/32136
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I95d3ef804ea7ced749bf02e216d874dba1c4e541
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