{ "1a. Indent-Pre and Comments": { "html2wt": " a\n\nc\n" }, "1b. Indent-Pre and Comments": { "html2wt": " a\n\nc\n" }, "1c. Indent-Pre and Comments": { "html2wt": " a\n\n a\n" }, "1d. Indent-Pre and Comments\n(Pre-handler currently cannot distinguish between comment/ws order and normalizes them to [comment,ws] order)": { "html2wt": " a\n\n b\n" }, "2a. Indent-Pre and tables": { "html2wt": "{|\n!h1\n!h2\n|foo\n|bar\n|}", "selser [3,[0,[[3,1,0,3,4]]]]": "{|\n |-\n! data-foobar=\"k2njey\" |h1!!h2\n \n!17hm4qs\n|}", "selser [4,[0,[[3,0,3,2,[4]]]]]": "z7h7bw\n{|\n |-\n!h1\n!1cg2a9r\n|foo||myb1u1 \n|}" }, "2b. Indent-Pre and tables": { "html2wt": "{|\n|foo\n|}" }, "2c. Indent-Pre and tables (T44252)": { "html2wt": "{|\n|+foo\n!bar\n|}" }, "2d. Indent-Pre and tables": { "html2wt": " a\n {|\n | b\n |}" }, "2g. Indented table markup mixed with indented pre content (proposed in T8200)": { "html2wt": " {| \n |\n Text that should be rendered preformatted \n |}" }, "3a. Indent-Pre and block tags (single-line html)": { "selser [[4],2,2,0,[2],1,2,[2]]": "gy1eyd\n\n17ucfxh

foo

1yvhwvw\n\n\n b
foo
k2aost\n c
foo
567v5t\n 114soep foo ", "selser [0,[3],2,3,3,0,2,4]": " a

1fx5dab\n\n\n b
foo
1g9n7co\nf09a97", "selser [0,3,1,3,[3],4,0,[4]]": " a \n \nb \n\n\n1qc5zjc\n 1la0n9t", "selser [4,[4],0,[3],2,3,0,[4]]": "1xnnljk

1v33w05

\n b
1bu36yk\n\n\n c \n 16w8b21", "selser [[2],0,2,4,0,3,0,2]": "9hfp91 a

foo

ydl7lg\n\n\n b \n\n5zlgwx\n\n\n c \n\nej88n9\n foo ", "selser [[4],[2],0,3,4,[[3]],0,1]": "tevs9u

vts2qz foo

\n b \n\nw3u448
\n foo ", "selser [0,0,0,4,0,2,0,1]": " a

foo

\n b \n\n145shfl\n\n\n c \n\n1eq7qr5
foo
\n foo ", "selser [[3],2,4,[2],2,[3],0,0]": "\n\nzjgma8

foo

gzui7m
1afaazv foo
1rjyhk\n\n\n c
\n foo ", "selser [[2],0,[4],0,[3],2,4,0]": "1jrp9v5 a

foo

nk1h2b
foo
\n c \n\n1b6klzm
foo
amck86\n foo " }, "4. Multiple spaces at start-of-line": { "html2wt": "foo \n foo\n\n{|\n|foo\n|}" }, "6. Pre-blocks should extend across lines with leading WS even when there is no wrappable content": { "wt2html": "
a\n\n \nb
\n\n
c
\n \n

d

", "html2html": "
a\n\nb
\n\n
c
\n

\n
\nd

\n", "html2wt": " a\n \n b\n\n c\n \n\nd\n" }, "
 with  inside (compatibility with 1.6 and earlier)": {
        "html2wt": " \n \n \n"
    },
    "Off-by-1 DSR values: Regression test for indent-pre usages": {
        "selser [4,0,[0,0,0,0,0,2]]": "102xtxf{{1x|\n}} ''{{1x|\n }}X'' {{1x|\n }}1x282zjY",
        "selser [4,0,2]": "ilxbbg{{1x|\n}}hnyiv2\n ''{{1x|\n}} X'' {{1x|\n}} Y",
        "selser [4,0,[3,0,2,0,0,3]]": "19q4k7p{{1x|\n}} {{1x|\n }}6y6nw1X'' {{1x|\n }}",
        "selser [0,0,[3,0,0,0,0,2]]": " {{1x|\n}} {{1x|\n }}X'' {{1x|\n }}1b3dalhY",
        "selser [4,0,[3,0,2,0,0,0]]": "18nk9lj{{1x|\n}} {{1x|\n }}txy63mX'' {{1x|\n }}Y",
        "selser [0,0,[0,0,2,0,0,0]]": " {{1x|\n}} ''{{1x|\n }}1ehlcvgX'' {{1x|\n }}Y",
        "selser [4,0,[0,0,2,0,0,0]]": "dpcew1{{1x|\n}} ''{{1x|\n }}7mn201X'' {{1x|\n }}Y",
        "selser [2,0,0]": "pr2b0q {{1x|\n}} ''{{1x|\n}} X'' {{1x|\n}} Y",
        "selser [3,0,[1,0,3,0,0,0]]": "{{1x|\n}} {{1x|\n }}'' {{1x|\n }}Y",
        "selser [0,0,[4,0,0,0,0,3]]": " {{1x|\n}} 1q6coin{{1x|\n }}X'' {{1x|\n }}",
        "selser [3,0,2]": "{{1x|\n}}15fxy4e\n ''{{1x|\n}} X'' {{1x|\n}} Y",
        "selser [0,0,1]": " {{1x|\n}} ''{{1x|\n }}X'' {{1x|\n }}Y",
        "selser [2,0,1]": "2ji41v {{1x|\n}} ''{{1x|\n }}X'' {{1x|\n }}Y",
        "selser [4,0,[0,0,2,0,0,3]]": "tsgi8g{{1x|\n}} ''{{1x|\n }}q8tfdaX'' {{1x|\n }}",
        "selser [0,0,[3,0,3,0,0,0]]": " {{1x|\n}} {{1x|\n }}'' {{1x|\n }}Y"
    },
    "Regression with preformatted in 
": { "html2wt": "
\n Blah\n\n
" }, "Render paragraphs when indent-pre is suppressed in blocklevels": { "html2wt": "
\n foo\n\n bar\n\n
" }, "T54763: Preformatted in
": { "html2wt": "
\n Blah\n\n{|\n|\n indented cell (no pre-wrapping!)\n|}\n
" }, "Templates: Indent-Pre: 1a. Templates that break a line should suppress
": {
        "html2wt": ""
    },
    "Templates: Indent-Pre: 1b. Templates that break a line should suppress 
": {
        "html2wt": "foo\n"
    },
    "Templates: Indent-Pre: 1c: Wrapping should be based on expanded content": {
        "html2wt": " a\n\nb\n"
    },
    "Templates: Indent-Pre: 1d: Wrapping should be based on expanded content": {
        "html2wt": " a\n\nb\nc\n\n d\n\ne\n"
    },
    "Templates: Indent-Pre: 1e. Wrapping should be based on expanded content": {
        "html2wt": " foo\n\n foo bar\n\n foo\n bar\n\n foo\n\n foo\n\n bar\n"
    },
    "Templates: Indent-Pre: 1f: Wrapping should be based on expanded content": {
        "wt2html": "
a
\n\n\n
a
\n\n\n
b
\n\n

a

\n
b
\n\n

a

\n
b
", "wt2wt": "{{1x| }}a\n\n{{1x|\n }}a\n\n{{1x|\n b}}\n\n{{1x|a\n }}b\n\n{{1x|a\n}}\n b\n", "html2wt": " a\n\n\n a\n\n\n b\n\na\n\n b\n\na\n\n b\n", "selser [0,4,0,0,0,0,0,3,0,0,0,4,0,0,[3]]": "{{1x| }}a60me7p{{1x|\n }}a\n\n{{1x|\n b}}\n{{1x|a\n }}b\n1845xzp{{1x|a\n}} ", "selser [0,4,0,0,0,0,0,4,0,0,0,0,0,0,0]": "{{1x| }}aj90d3l{{1x|\n }}a\n\n{{1x|\n b}}\nzgdomz{{1x|a\n }}b\n\n{{1x|a\n}} b", "selser [0,3,0,0,0,0,0,4,0,0,0,0,0,0,[4]]": "{{1x| }}a{{1x|\n }}a\n\n{{1x|\n b}}\n14v9z5u{{1x|a\n }}b\n\n{{1x|a\n}} 99dktd", "selser [0,4,0,0,0,0,0,0,0,0,0,2,0,0,[3]]": "{{1x| }}adm7tcc{{1x|\n }}a\n\n{{1x|\n b}}\n\n{{1x|a\n }}b\nvw42dq\n\n{{1x|a\n}} ", "selser [0,3,0,0,0,0,0,0,0,0,0,2,0,0,[3]]": "{{1x| }}a{{1x|\n }}a\n\n{{1x|\n b}}\n\n{{1x|a\n }}b\n9taely\n\n{{1x|a\n}} ", "selser [0,3,0,0,0,0,0,3,0,0,0,4,0,0,0]": "{{1x| }}a{{1x|\n }}a\n\n{{1x|\n b}}\n{{1x|a\n }}b\n1izgzim{{1x|a\n}} b", "selser [0,3,0,0,0,0,0,3,0,0,0,3,0,0,0]": "{{1x| }}a{{1x|\n }}a\n\n{{1x|\n b}}\n{{1x|a\n }}b\n{{1x|a\n}} b", "selser [0,0,0,0,0,0,0,2,0,0,0,0,0,0,1]": "{{1x| }}a\n\n{{1x|\n }}a\n\n{{1x|\n b}}\noj610q\n\n{{1x|a\n }}b\n\n{{1x|a\n}} b", "selser [0,2,0,0,0,0,0,3,0,0,0,0,0,0,1]": "{{1x| }}a1442ymz\n\n{{1x|\n }}a\n\n{{1x|\n b}}\n{{1x|a\n }}b\n\n{{1x|a\n}} b", "selser [0,0,0,0,0,0,0,0,0,0,0,4,0,0,0]": "{{1x| }}a\n\n{{1x|\n }}a\n\n{{1x|\n b}}\n\n{{1x|a\n }}b\n3cw4yv{{1x|a\n}} b", "selser [0,0,0,0,4,0,0,0,0,0,0,0,0,0,[2]]": "{{1x| }}a\n\n{{1x|\n }}a\nzfyath{{1x|\n b}}\n\n{{1x|a\n }}b\n\n{{1x|a\n}} 12ev5ibb", "selser [0,0,0,0,0,0,0,0,0,0,0,0,0,0,[4]]": "{{1x| }}a\n\n{{1x|\n }}a\n\n{{1x|\n b}}\n\n{{1x|a\n }}b\n\n{{1x|a\n}} gcrjt0" } }