git.iko.soy/typeable/pandoc
on master help sign in
Docx reader: test lists in table cells.
commit616e211f366a5252a105f2ef6e5c7c824874ca8b authorJesse Rosenthal <jrosenthal@jhu.edu> dateFri 13 Feb 2015, 09:08 (12 years ago) parent24fd0ad
3 files changed+15
tests/Tests/Readers/Docx.hs+4 tests/docx/table_with_list_cell.docx tests/docx/table_with_list_cell.native+11
tests/Tests/Readers/Docx.hs+4
@@ -187,6 +187,10 @@ tests = [ testGroup "inlines"
187187 "tables"
188188 "docx/tables.docx"
189189 "docx/tables.native"
190+ , testCompare
191+ "tables with lists in cells"
192+ "docx/table_with_list_cell.docx"
193+ "docx/table_with_list_cell.native"
190194 , testCompare
191195 "code block"
192196 "docx/codeblock.docx"
tests/docx/table_with_list_cell.docxnew file

Binary file not shown.

tests/docx/table_with_list_cell.nativenew file+11
@@ -0,0 +1,11 @@
1+[Table [] [AlignDefault,AlignDefault] [0.0,0.0]
2+ [[Plain [Str "Cell",Space,Str "with",Space,Str "text"]]
3+ ,[Plain [Str "Cell",Space,Str "with",Space,Str "text"]]]
4+ [[[BulletList
5+ [[Para [Str "Cell",Space,Str "with"]]
6+ ,[Para [Str "A"]]
7+ ,[Para [Str "Bullet",Space,Str "list"]]]]
8+ ,[OrderedList (1,Decimal,Period)
9+ [[Para [Str "Cell",Space,Str "with"]]
10+ ,[Para [Str "A"]]
11+ ,[Para [Str "Numbered",Space,Str "list."]]]]]]]