Subramanya Sastry has uploaded a new change for review.
https://gerrit.wikimedia.org/r/71744
Change subject: WIP: (Bug 50420) Recognize sol-content in implicit <td> after a
<tr>
......................................................................
WIP: (Bug 50420) Recognize sol-content in implicit <td> after a <tr>
-------
TODO: Newly added "Implicit <td> after a |-" test is failing
wt2html mode with this patch. That needs fixing before this
patch can be considered done.
-------
* Fixed tokenizer to not eat sol tokens when an implicit <td> is
added after a |- token
* This fixes the test case in the bug report (added to parser tests)
* The wt2html output for a couple of tests had to be adjusted
since an implicit <td> is now added where it was not before.
Those two tests now fail in wt2wt mode (because autoInserted*
flags are not used in editMode).
* Regenerated selser changes for new and changed tests.
Updated blacklist (wt2html, wt2wt, selser tests fail for
newer tests)
Most of the failing selser tests that are now failing are
because of the old problem where selser is smarter and more
accurate than regular wt2wt serialization.
Change-Id: Ic61150b3673731a58e50401a65eba4cd3d63d742
---
M js/lib/pegTokenizer.pegjs.txt
M js/tests/parserTests-blacklist.js
M js/tests/parserTests.txt
M js/tests/selser.changes.json
4 files changed, 119 insertions(+), 41 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Parsoid
refs/changes/44/71744/1
diff --git a/js/lib/pegTokenizer.pegjs.txt b/js/lib/pegTokenizer.pegjs.txt
index 1c93a2b..b5561ac 100644
--- a/js/lib/pegTokenizer.pegjs.txt
+++ b/js/lib/pegTokenizer.pegjs.txt
@@ -882,11 +882,11 @@
/* Default URL protocols in MediaWiki (see DefaultSettings). Normally
* these can be configured dynamically. */
-url_protocol =
- & { return Util.isProtocolValid( input.substr( pos ), pegArgs.env ); }
- h:[a-zA-Z\/]+ c:':'? s:'//'?
-{
- return h.join( '' ) + c + s;
+url_protocol =
+ & { return Util.isProtocolValid( input.substr( pos ), pegArgs.env ); }
+ h:[a-zA-Z\/]+ c:':'? s:'//'?
+{
+ return h.join( '' ) + c + s;
}
// javascript does not support unicode features..
@@ -1946,20 +1946,7 @@
a:generic_attribute*
tagEndPos:({return pos;})
// handle tables with missing table cells after a row
- td:(
- // Try to eat up *extra* spaces separately. This side-steps
- // complications from start-of-line-transparent content that is not a
- // newline (comments, noinclude etc) for now.
- nls:optionalNewlines
- ss:sol+
- !( space* (pipe / [!+-]) )
- tdt:table_data_tag
- {
- tdt[0].dataAttribs.autoInsertedStart = true;
- tdt[0].dataAttribs.autoInsertedEnd = true;
- return nls.concat(flattenIfArray(ss), tdt);
- }
- )?
+ td:implicit_table_data_tag?
{
// We rely on our tree builder to close the row as needed. This is
// needed to support building tables from fragment templates with
@@ -1999,6 +1986,18 @@
return td.concat(tds);
}
+implicit_table_data_tag
+ = !( sol+ (pipe / [!+-]) )
+ ! "}"
+ tagEndPos:({return pos;})
+ b:nested_block+
+ {
+ var td = buildTableTokens("td", "|", '', [pos0, tagEndPos], pos,
flattenIfArray(b));
+ td[0].dataAttribs.autoInsertedStart = true;
+ td[0].dataAttribs.autoInsertedEnd = true;
+ return td;
+ }
+
table_data_tag
= //& { dp("table_data enter, pos=" + pos + input.substr(pos,10)); return
true; }
! "}"
diff --git a/js/tests/parserTests-blacklist.js
b/js/tests/parserTests-blacklist.js
index cef2b13..5c812b9 100644
--- a/js/tests/parserTests-blacklist.js
+++ b/js/tests/parserTests-blacklist.js
@@ -60,6 +60,8 @@
add("wt2html", "Bracketed external links with template-generated invalid
target");
add("wt2html", "Non-extlinks in brackets");
add("wt2html", "Template-generated table cell attributes and cell content");
+add("wt2html", "Implicit <td> after a |-\n(PHP parser relies on Tidy to add
the missing <td> tags)");
+add("wt2html", "Pres should be recognized in an explicit <td> context, but not
in an implicit <td> context\n(PHP parser relies on Tidy to add the missing <td>
tags)");
add("wt2html", "Link containing \"#<\" and \"#>\" % as a hex sequences- these
are valid section anchors\nExample for such a section: == < ==");
add("wt2html", "Link containing \"<#\" and \">#\" as a hex sequences");
add("wt2html", "Link with double quotes in title part (literal) and alternate
part (interpreted)");
@@ -569,6 +571,10 @@
add("wt2wt", "Invalid attributes in table cell (bug 1830)");
add("wt2wt", "Table security: embedded pipes
(http://lists.wikimedia.org/mailman/htdig/wikitech-l/2006-April/022293.html)");
add("wt2wt", "Table attributes with empty value");
+add("wt2wt", "Wikitext table with html-syntax row (Parsoid)");
+add("wt2wt", "Implicit <td> after a |-\n(PHP parser relies on Tidy to add the
missing <td> tags)");
+add("wt2wt", "Pres should be recognized in an explicit <td> context, but not
in an implicit <td> context\n(PHP parser relies on Tidy to add the missing <td>
tags)");
+add("wt2wt", "Lists should be recognized in an implicit <td> context\n(PHP
parser relies on Tidy to add the missing <td> tags)");
add("wt2wt", "Link containing double-single-quotes '' in text embedded in
italics (bug 4598 sanity check)");
add("wt2wt", "BUG 2: [[page|http://url/]] should link to page, not
http://url/");
add("wt2wt", "Parsoid-centric test: Whitespace in ext- and wiki-links should
be preserved");
@@ -681,6 +687,7 @@
add("wt2wt", "RT-ed inter-element separators should be valid separators");
add("wt2wt", "Trailing newlines in a deep dom-subtree that ends a wikitext
line should be migrated out\n(Parsoid-only since PHP parser relies on Tidy for
correct output)");
add("wt2wt", "Empty TD followed by TD with tpl-generated attribute");
+add("wt2wt", "Empty TR followed by a template-generated TR\n(Parsoid-specific
since PHP parser doesn't handle this mixed tbl-wikitext)");
add("wt2wt", "Empty TR followed by mixed-ws-comment line should RT correctly");
add("wt2wt", "Improperly nested inline or quotes tags with whitespace in
between");
@@ -2768,6 +2775,16 @@
add("selser", "Wikitext table with double-line table cell [[3,[2,2]]]");
add("selser", "Table cell with a single comment [[0,[2,3]]]");
add("selser", "Table cell with a single comment [[4,[2,4]]]");
+add("selser", "Wikitext table with html-syntax row (Parsoid) [[4,1]]");
+add("selser", "Wikitext table with html-syntax row (Parsoid)
[[0,[[0,0,[2]],2]]]");
+add("selser", "Wikitext table with html-syntax row (Parsoid)
[[0,[[0,3,0],0]]]");
+add("selser", "Wikitext table with html-syntax row (Parsoid) [[4,2]]");
+add("selser", "Wikitext table with html-syntax row (Parsoid) [1]");
+add("selser", "Wikitext table with html-syntax row (Parsoid)
[[4,[[0,3,[2]],0]]]");
+add("selser", "Wikitext table with html-syntax row (Parsoid) [2]");
+add("selser", "Wikitext table with html-syntax row (Parsoid) [[2,2]]");
+add("selser", "Wikitext table with html-syntax row (Parsoid)
[[4,[[0,3,[2]],2]]]");
+add("selser", "Wikitext table with html-syntax row (Parsoid) [[2,[2,2]]]");
add("selser", "Link with HTML entity in suffix / tail [[4,1,0,0,2]]");
add("selser", "Link with HTML entity in suffix / tail [[4,1,0,[4],2]]");
add("selser", "Link with HTML entity in suffix / tail [[0,0,0,2,4]]");
@@ -3724,18 +3741,18 @@
add("selser", "Accept empty td cell attribute [[0,[2,2]]]");
add("selser", "Empty table rows go away [[0,[[[2],4,2],0,0,3,1,2]]]");
add("selser", "Empty table rows go away [[3,[[[2],0,[4]],0,0,0,2,4]]]");
-add("selser", "RT-ed inter-element separators should be valid separators
[[2],[2,[[3],4]]]");
-add("selser", "RT-ed inter-element separators should be valid separators
[1,1]");
-add("selser", "RT-ed inter-element separators should be valid separators
[0,4]");
-add("selser", "RT-ed inter-element separators should be valid separators
[4,[0,[[3],0]]]");
-add("selser", "RT-ed inter-element separators should be valid separators
[1,[0,[[4],3]]]");
-add("selser", "RT-ed inter-element separators should be valid separators
[0,1]");
-add("selser", "RT-ed inter-element separators should be valid separators
[1,2]");
-add("selser", "RT-ed inter-element separators should be valid separators
[3,[0,[0,4]]]");
-add("selser", "RT-ed inter-element separators should be valid separators
[0,[2,[0,3]]]");
-add("selser", "RT-ed inter-element separators should be valid separators
[2,[0,[[2],0]]]");
-add("selser", "RT-ed inter-element separators should be valid separators
[0,2]");
-add("selser", "RT-ed inter-element separators should be valid separators
[4,1]");
+add("selser", "RT-ed inter-element separators should be valid separators
[[2,[1,0]]]");
+add("selser", "RT-ed inter-element separators should be valid separators [1]");
+add("selser", "RT-ed inter-element separators should be valid separators
[[0,2]]");
+add("selser", "RT-ed inter-element separators should be valid separators
[[0,[1,2]]]");
+add("selser", "RT-ed inter-element separators should be valid separators
[[0,1]]");
+add("selser", "RT-ed inter-element separators should be valid separators [2]");
+add("selser", "RT-ed inter-element separators should be valid separators
[[0,[[[4,0]],4]]]");
+add("selser", "RT-ed inter-element separators should be valid separators
[[4,[[2],4]]]");
+add("selser", "RT-ed inter-element separators should be valid separators
[[0,[[[4,[4]]],3]]]");
+add("selser", "RT-ed inter-element separators should be valid separators
[[0,[2,4]]]");
+add("selser", "RT-ed inter-element separators should be valid separators
[[0,[1,0]]]");
+add("selser", "RT-ed inter-element separators should be valid separators
[[4,[0,3]]]");
add("selser", "Trailing newlines in a deep dom-subtree that ends a wikitext
line should be migrated out\n(Parsoid-only since PHP parser relies on Tidy for
correct output) [1,0,[0,2]]");
add("selser", "Trailing newlines in a deep dom-subtree that ends a wikitext
line should be migrated out\n(Parsoid-only since PHP parser relies on Tidy for
correct output) [[0,1],0,2]");
add("selser", "Trailing newlines in a deep dom-subtree that ends a wikitext
line should be migrated out\n(Parsoid-only since PHP parser relies on Tidy for
correct output) [[2,[[[[2,[2]]]],0]],0,[0,[[3],3]]]");
@@ -3762,15 +3779,18 @@
add("selser", "Empty TD followed by TD with tpl-generated attribute [[4,1]]");
add("selser", "Indented table with an empty td [2,[3,[[0,0,0,2],4]]]");
add("selser", "Empty TR followed by mixed-ws-comment line should RT correctly
[2]");
+add("selser", "Empty TR followed by mixed-ws-comment line should RT correctly
[[2,[[3],2,2,4]]]");
add("selser", "Empty TR followed by mixed-ws-comment line should RT correctly
[[0,[2,2,2,0]]]");
add("selser", "Empty TR followed by mixed-ws-comment line should RT correctly
[[0,1]]");
-add("selser", "Empty TR followed by mixed-ws-comment line should RT correctly
[[0,[[0,[4,0]],0,[2,4,[4,0]],2]]]");
-add("selser", "Empty TR followed by mixed-ws-comment line should RT correctly
[[3,[[2,0],2,[0,4,3],3]]]");
+add("selser", "Empty TR followed by mixed-ws-comment line should RT correctly
[[0,[[[0,4]],0,[[2,4,0,4]],0]]]");
+add("selser", "Empty TR followed by mixed-ws-comment line should RT correctly
[[3,[[1],0,[[2,0,0,4]],4]]]");
add("selser", "Empty TR followed by mixed-ws-comment line should RT correctly
[1]");
-add("selser", "Empty TR followed by mixed-ws-comment line should RT correctly
[[0,[1,0,[0,4,0],0]]]");
+add("selser", "Empty TR followed by mixed-ws-comment line should RT correctly
[[0,[[[2,3]],4,1,0]]]");
+add("selser", "Empty TR followed by mixed-ws-comment line should RT correctly
[[0,[1,0,[[4,0,0,0]],0]]]");
add("selser", "Empty TR followed by mixed-ws-comment line should RT correctly
[[0,[1,0,3,0]]]");
-add("selser", "Empty TR followed by mixed-ws-comment line should RT correctly
[[0,[2,0,[0,2,3],0]]]");
-add("selser", "Empty TR followed by mixed-ws-comment line should RT correctly
[[0,[[3,[4,2]],4,4,2]]]");
+add("selser", "Empty TR followed by mixed-ws-comment line should RT correctly
[[0,[[[3,0]],0,2,0]]]");
+add("selser", "Empty TR followed by mixed-ws-comment line should RT correctly
[[0,[2,0,[[2,3,0,4]],0]]]");
+add("selser", "Empty TR followed by mixed-ws-comment line should RT correctly
[[0,[[2],0,4,2]]]");
add("selser", "Improperly nested inline or quotes tags with whitespace in
between [[[0,2],2,0,1,2]]");
add("selser", "Improperly nested inline or quotes tags with whitespace in
between [1]");
add("selser", "Improperly nested inline or quotes tags with whitespace in
between [[0,1,2,[0,2],0]]");
diff --git a/js/tests/parserTests.txt b/js/tests/parserTests.txt
index 2d408c7..8691ae3 100644
--- a/js/tests/parserTests.txt
+++ b/js/tests/parserTests.txt
@@ -3941,8 +3941,64 @@
!! result
<table>
<tbody>
-<tr>
+<tr><td></td>
<td>foo</td></tr></tbody></table>
+!! end
+
+!! test
+Implicit <td> after a |-
+(PHP parser relies on Tidy to add the missing <td> tags)
+!! options
+parsoid=wt2html,wt2wt
+!! input
+{|
+|-
+a
+|}
+!! result
+<table>
+<tr><td>a</td></tr>
+</table>
+!! end
+
+!! test
+Pres should be recognized in an explicit <td> context, but not in an implicit
<td> context
+(PHP parser relies on Tidy to add the missing <td> tags)
+!! options
+parsoid=wt2html,wt2wt
+!! input
+{|
+|-
+|
+ a
+|-
+ b
+|}
+!! result
+<table>
+<tr>
+<td><pre>a</pre></td>
+<td> b</td>
+</tr>
+</table>
+!! end
+
+!! test
+Lists should be recognized in an implicit <td> context
+(PHP parser relies on Tidy to add the missing <td> tags)
+!! options
+parsoid=wt2html,wt2wt
+!! input
+{|
+|-
+*a
+|}
+!! result
+<table>
+<tr>
+<td><ul><li>a</li></ul></td>
+</tr>
+</table>
!! end
###
@@ -15886,7 +15942,7 @@
!!result
<table>
<tbody>
-<tr></tr>
+<tr><td></td></tr>
<tr typeof="mw:Transclusion">
<td>foo</td></tr></tbody></table>
!!end
diff --git a/js/tests/selser.changes.json b/js/tests/selser.changes.json
index 14156b9..a4d3f21 100644
--- a/js/tests/selser.changes.json
+++ b/js/tests/selser.changes.json
@@ -250,7 +250,10 @@
"Wikitext table with a lot of
comments":[[1],[[0,0,4,4]],[2],[3],[[0,3,4,1]],[[2,0,0,[4,0,3,2,[2,2,0,2],0,0,0]]],[[2,0,2,4]],[[0,2,4,[1,0,0,2,[2,0,2,0],4,3,2]]],[[0,4,0,[2,3,2,4,4,3,0,0]]],[[0,4,0,[3,2,0,4,4,2,0,2]]],[4],[[0,4,3,[0,0,0,0,2,0,3,0]]],[[0,0,0,[0,0,0,0,3,0,4,0]]],[[3,4,0,[2,2,3,0,[2,0,0,1],0,0,0]]],[[3,0,0,2]],[[0,0,2,3]],[[2,0,0,[0,3,0,2,[0,0,0,4],0,4,0]]],[[0,0,0,3]],[[0,0,4,[2,4,0,4,[4,0,0,1],2,2,2]]],[[4,0,3,[0,0,0,0,[0,2,2,0],4,0,0]]]],
"Wikitext table with double-line table
cell":[[4],[[0,1]],[2],[[2,1]],[3],[1],[[0,3]],[[0,4]],[[0,2]],[[4,[1,0]]],[[0,[4,3]]],[[0,[[2],0]]],[[3,[2,2]]],0,[[3,4]],[[3,[4,3]]],[[0,[[[0,3]],0]]],[[4,[4,3]]],[[2,[[[2,[4]]],3]]],[[2,[4,0]]]],
"Table cell with a single
comment":[[[0,3]],[2],[[2,2]],[1],[3],[4],[[0,[2,3]]],[[3,2]],[[4,1]],[[0,[4,0]]],[[0,[[[3,2],0,3],4]]],[[0,4]],[[2,[[[3,2],3,[4]],2]]],[[3,3]],[[2,3]],[[4,3]],[[0,1]],[[3,4]],[[2,[1,2]]],[[4,[2,4]]]],
-"Wikitext table with html-syntax row
(Parsoid)":[[4],[[2,[[2,4],0]]],[3],[[4,1]],[[0,[0,2]]],[[0,[[0,2],0]]],[[4,3]],[[0,[3,3]]],[[4,2]],[1],[[4,[[0,2],0]]],[[2,3]],[2],[[2,[[4,0],0]]],[[2,2]],[[0,[[0,[4]],2]]],[[3,[4,0]]],[[2,4]],[[3,3]],[[2,[2,2]]]],
+"Wikitext table with html-syntax row
(Parsoid)":[[4],[[2,[[1,4,0],3]]],[3],[[4,1]],[[0,[[0,0,[2]],2]]],[[0,[[0,3,0],0]]],[[4,3]],[[0,[3,3]]],[[4,2]],[1],[[4,[[0,3,[2]],0]]],[[2,3]],[2],[[2,[[4,0,0],3]]],[[2,2]],[[0,[[0,0,4],2]]],[[4,[[0,3,[2]],2]]],[[2,4]],[[3,3]],[[2,[2,2]]]],
+"Implicit <td> after a |-\n(PHP parser relies on Tidy to add the missing <td>
tags)":[],
+"Pres should be recognized in an explicit <td> context, but not in an implicit
<td> context\n(PHP parser relies on Tidy to add the missing <td> tags)":[],
+"Lists should be recognized in an implicit <td> context\n(PHP parser relies on
Tidy to add the missing <td> tags)":[],
"Plain link,
capitalized":[[4],[2],[[4]],[[1]],[[[4]]],[1],[[[2]]],[[[3]]],0,[[3]],[3],[[2]]],
"Plain link,
uncapitalized":[[[4]],[[2]],[[3]],[1],[2],[4],[[[2]]],[3],[[1]],0,[[[4]]],[[[3]]]],
"Piped
link":[[1],[[1]],[3],[[2]],[[[4]]],[[3]],[4],[[[3]]],0,[[4]],[2],[[[2]]]],
@@ -1107,12 +1110,12 @@
"Non-empty attributes in
th-cells":[[[3,[[1,1],0]]],[[0,[[0,[4]],0]]],[4],[[0,4]],[[4,4]],[3],[[0,[[2,2],3]]],[2],[1],[[4,2]],[[2,[4,2]]],[[2,[1,0]]],[[0,2]],[[4,[3,3]]],[[4,[[0,[2]],2]]],[[4,[4,2]]],[[0,1]],[[2,2]],[[0,[[[2],1],2]]],[[4,[[4,2],0]]]],
"Accept empty attributes in
th-cells":[[3],[[0,2]],[[0,[3,0]]],[4],[1],[[3,2]],[[3,[3,0]]],[[0,[4,3]]],[[0,1]],[[0,[3,2]]],[2],[[2,[[0,2],2]]],[[4,[1,0]]],[[0,[[1,0],0]]],[[0,[4,2]]],[[0,[[0,2],0]]],[[0,[3,4]]],[[3,4]],[[3,1]],[[3,[4,0]]]],
"Empty table rows go
away":[[1],[[0,[[[2],4,2],0,0,3,1,2]]],[[3,[[[2],0,[4]],0,0,0,2,4]]],[3],[[0,[3,0,2,0,4,2]]],[2],[[0,3]],[[2,4]],[[0,[[[4],3,3],0,0,0,0,0]]],[[2,[[4,2,1],3,0,4,4,2]]],[[3,4]],[[3,[0,0,3,0,1,0]]],[[4,[[1,0,0],3,0,0,0,2]]],[4],[[2,[[3,4,[4]],0,1,3,0,2]]],[[2,[4,4,0,2,0,4]]],[[4,1]],[[0,4]],[[2,[[[3],2,0],0,4,4,0,0]]],[[2,[1,2,0,4,1,3]]]],
-"RT-ed inter-element separators should be valid
separators":[[3,1],[[2],[2,[[3],4]]],[1,1],[3,3],[0,[0,3]],[1,3],[0,3],[0,4],[4,[0,[[3],0]]],[1,[0,[[4],3]]],[0,1],[1,2],[3,[0,[0,4]]],[4,4],[0,[0,[4,0]]],[0,[3,4]],[0,[2,[0,3]]],[2,[0,[[2],0]]],[0,2],[4,1]],
+"RT-ed inter-element separators should be valid
separators":[[3],[[2,[1,0]]],[1],[[0,2]],[[0,[[3],0]]],[[0,3]],[[0,[1,2]]],[[0,4]],[4],[[0,[[4],3]]],[[0,1]],[2],[[0,[[[4,0]],4]]],[[4,[[2],4]]],[[0,[[[4,[4]]],3]]],[[0,[2,4]]],[[0,[1,0]]],[[0,[[1],0]]],[[4,[0,3]]],[[2,3]]],
"Trailing newlines in a deep dom-subtree that ends a wikitext line should be
migrated out\n(Parsoid-only since PHP parser relies on Tidy for correct
output)":[[1,0,[0,2]],[4,0,2],[4,2,[0,[4,0]]],[[0,1],0,2],[[2,[[[[2,[2]]]],0]],0,[0,[[3],3]]],[[0,3],0,[0,4]],[[0,4],0,3],[[3,[2,3]],0,4],[[0,[[[1]],0]],3,2],[3,3,[3,4]],[4,4,1],[3,0,4],[[2,4],4,[4,[2,0]]],[3,0,1],[4,4,[0,4]],[2,0,[0,2]],[2,0,[4,4]],[2,0,[2,4]],[3,0,[2,[2,0]]],[[0,[2,0]],4,1]],
"Empty TD followed by TD with tpl-generated
attribute":[[3],[[3,[3,0]]],[1],[2],[[0,[[2,0,0,0],0]]],[[0,[[0,4,0,0],3]]],[[2,[[2,0,0,0],4]]],[[0,3]],[[0,[4,2]]],[[0,[1,4]]],[4],[[0,2]],[[4,2]],[[4,[2,0]]],[[0,1]],[[3,[[0,2,0,0],0]]],[[3,[[4,0,0,0],4]]],[[2,[[2,2,2,0],0]]],[[4,[[0,0,4,0],0]]],[[4,1]]],
"Indented table with an empty
td":[[0,2],[2,1],[2,[0,[[2,2,2,3],3]]],[2,[3,[[0,0,0,2],4]]],[2,[3,[4,0]]],[2,[2,4]],[4,[4,1]],[0,3],[3,[0,[[3,0,0,0],4]]],[2,2],[0,[4,[[0,2,3,3],0]]],[0,[3,3]],[3,4],[4,1],[3,[2,3]],[0,1],[4,[4,[[0,2,0,[4]],0]]],[4,[2,1]],[0,[4,2]],[3,2]],
"Empty TR followed by a template-generated TR\n(Parsoid-specific since PHP
parser doesn't handle this mixed tbl-wikitext)":[],
-"Empty TR followed by mixed-ws-comment line should RT
correctly":[[2],[[2,[[3,1],3,4,3]]],[[0,[2,2,2,0]]],[4],[[0,1]],[3],[[2,3]],[[0,[3,0,[2,0,1],2]]],[[0,[[0,[4,0]],0,[2,4,[4,0]],2]]],[[3,[[2,0],2,[0,4,3],3]]],[1],[[0,[[0,1],3,4,2]]],[[0,[1,0,[0,4,0],0]]],[[0,[1,0,3,0]]],[[0,[[0,3],0,[2,0,3],2]]],[[2,4]],[[3,4]],[[0,[2,0,[0,2,3],0]]],[[3,[4,3,3,2]]],[[0,[[3,[4,2]],4,4,2]]]],
+"Empty TR followed by mixed-ws-comment line should RT
correctly":[[2],[[2,[[3],2,2,4]]],[[0,[2,2,2,0]]],[4],[[0,1]],[3],[[2,3]],[[0,[3,0,[1],0]]],[[0,[[[0,4]],0,[[2,4,0,4]],0]]],[[3,[[1],0,[[2,0,0,4]],4]]],[1],[[0,[[[2,3]],4,1,0]]],[[0,[1,0,[[4,0,0,0]],0]]],[[0,[1,0,3,0]]],[[0,[[[3,0]],0,2,0]]],[[2,4]],[[3,4]],[[0,[2,0,[[2,3,0,4]],0]]],[[3,[4,3,3,2]]],[[0,[[2],0,4,2]]]],
"Multi-line image caption generated by templates with/without trailing
newlines":[[[0,3],0,0],[[0,[4,0,0,0,4,0]],0,[0,[0,0,0,0,3,0,3]]],[[0,[2,0,0,0,0,0]],0,[0,3]],[[0,[0,0,4,0,0,0]],0,[0,4]],[[0,[2,0,3,0,2,0]],3,[0,1]],[[0,3],0,[0,1]],[[0,3],3,[0,1]],[[0,[3,0,0,0,3,0]],0,[0,1]],[[0,4],2,[0,[0,0,3,0,0,0,4]]],[[0,[0,0,2,0,0,0]],0,[0,2]],[[0,2],0,[0,4]],[[0,2],0,[0,2]],[[0,3],3,[0,3]],[[0,[3,0,3,0,2,0]],4,[0,[4,0,3,0,3,0,0]]],[[0,1],0,[0,[4,0,2,0,4,0,4]]],[[0,[2,0,0,0,4,0]],0,[0,[0,0,4,0,3,0,3]]],[[0,4],2,[0,3]],[[0,1],0,[0,[2,0,2,0,4,0,0]]],[[0,4],0,[0,1]],[[0,1],3,[0,2]]],
"Improperly nested inline or quotes tags with whitespace in
between":[[[[0,2],2,0,1,2]],[3],[4],[1],[[0,1,2,[0,2],0]],[[3,[4],4,0,3]],[2],[[1,4,2,2,3]],[[[2,[4]],3,0,[0,4],0]],[[[3,1],4,3,2,1]],[[[3,2],0,0,[4,[3]],3]],[[[0,2],[3],0,3,0]],[[3,2,0,[4,1],3]],[[3,2,0,[3,2],4]],[[3,0,4,3,0]],[[4,0,2,3,3]],[[1,3,0,2,1]],[[3,4,4,0,2]],[[[0,3],[3],0,3,0]],[[[2,1],[3],3,[0,3],0]]],
"Image: Modifying size of an imge":[],
--
To view, visit https://gerrit.wikimedia.org/r/71744
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic61150b3673731a58e50401a65eba4cd3d63d742
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Parsoid
Gerrit-Branch: master
Gerrit-Owner: Subramanya Sastry <[email protected]>
Gerrit-Reviewer: jenkins-bot
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits