git.iko.soy/typeable/pandoc
on master help sign in
Added failing HTML reader test for table.

See #1341.

commit9090c549aab29552ee29e88ab2d38995a42a421e authorJohn MacFarlane <jgm@berkeley.edu> dateMon 16 Jun 2014, 15:12 (12 years ago) parent2b364b3
2 files changed+31−2
tests/html-reader.html+19−1 tests/html-reader.native+12−1
tests/html-reader.html+19−1
@@ -431,6 +431,24 @@ An e-mail address: nobody [at] nowhere.net<blockquote>
431431<p><em>Trailing space </em>text</p>
432432<p>text<em> Leading spaces</em></p>
433433<p><em>Trailing spaces </em>text</p>
434−
434+<h1>Tables</h1>
435+<table>
436+ <tr>
437+ <th>X</th>
438+ <th>Y</th>
439+ <th>Z</th>
440+ </tr>
441+ <tr>
442+ <td>1</td>
443+ <td>2</td>
444+ <td>3</td>
445+ </tr>
446+ <tr>
447+ <td>4</td>
448+ <td>5</td>
449+ <td>6</td>
450+ </tr>
451+</table>
452+</body>
435453</body>
436454</html>
tests/html-reader.native+12−1
@@ -308,4 +308,15 @@ Pandoc (Meta {unMeta = fromList [("generator",MetaInlines [Str "pandoc"]),("titl
308308,Para [Str "text",Space,Emph [Str "Leading",Space,Str "space"]]
309309,Para [Emph [Str "Trailing",Space,Str "space"],Space,Str "text"]
310310,Para [Str "text",Space,Emph [Str "Leading",Space,Str "spaces"]]
311−,Para [Emph [Str "Trailing",Space,Str "spaces"],Space,Str "text"]]
311+,Para [Emph [Str "Trailing",Space,Str "spaces"],Space,Str "text"]
312+,Header 1 ("",[],[]) [Str "Tables"]
313+,Table [] [AlignLeft,AlignLeft,AlignLeft] [0.3333333333333333,0.3333333333333333,0.3333333333333333]
314+ [[Plain [Str "X"]]
315+ ,[Plain [Str "Y"]]
316+ ,[Plain [Str "Z"]]]
317+ [[[Plain [Str "1"]]
318+ ,[Plain [Str "2"]]
319+ ,[Plain [Str "3"]]]
320+ ,[[Plain [Str "4"]]
321+ ,[Plain [Str "5"]]
322+ ,[Plain [Str "6"]]]]]