Docx reader: test lists in table cells.

This commit is contained in:
Jesse Rosenthal 2015-02-13 09:08:07 -05:00
parent 24fd0ad04d
commit 616e211f36
3 changed files with 15 additions and 0 deletions

View file

@ -187,6 +187,10 @@ tests = [ testGroup "inlines"
"tables"
"docx/tables.docx"
"docx/tables.native"
, testCompare
"tables with lists in cells"
"docx/table_with_list_cell.docx"
"docx/table_with_list_cell.native"
, testCompare
"code block"
"docx/codeblock.docx"

Binary file not shown.

View file

@ -0,0 +1,11 @@
[Table [] [AlignDefault,AlignDefault] [0.0,0.0]
[[Plain [Str "Cell",Space,Str "with",Space,Str "text"]]
,[Plain [Str "Cell",Space,Str "with",Space,Str "text"]]]
[[[BulletList
[[Para [Str "Cell",Space,Str "with"]]
,[Para [Str "A"]]
,[Para [Str "Bullet",Space,Str "list"]]]]
,[OrderedList (1,Decimal,Period)
[[Para [Str "Cell",Space,Str "with"]]
,[Para [Str "A"]]
,[Para [Str "Numbered",Space,Str "list."]]]]]]]