GWicke has submitted this change and it was merged.

Change subject: Do not discard newlines after "|" in template calls.
......................................................................


Do not discard newlines after "|" in template calls.

* Newlines and white-space after "|" was being swallowed.  But,
  these newlines change semantics and should be passed through.
          "   {{echo|
          foo}}"
  should not introduce a <pre> since the newline removes the pre
  context.  But, swallowing the newline introduces a pre.

  This bug affects the parse and RT of this simplified snippet
  obtained from "en:Oguni_Gensai"
----
[[File:Foo.png|thumb|a {{#tag:ref|b {{nihongo|c|d|e}}|group=note}}]]

{{nihongo|g|h}} {{nihongo|i|j}} {{nihongo|k|l||m}}

plain text
----

* No change in parser tests: TODO: add parser tests.
* Fixes semantic errors in en:Oguni_Gensai

Change-Id: I5c170e40b6f9e0367fb9cf116330d97532825850
---
M js/lib/pegTokenizer.pegjs.txt
1 file changed, 11 insertions(+), 1 deletion(-)

Approvals:
  GWicke: Verified; Looks good to me, approved


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

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

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

Reply via email to