summaryrefslogtreecommitdiff
path: root/tests/Tests/Readers
diff options
context:
space:
mode:
authorhubertp-lshift <hubertp@lshift.de>2016-11-26 21:45:56 +0100
committerJohn MacFarlane <jgm@berkeley.edu>2016-11-26 21:45:56 +0100
commit015dead0bb2bb5cea06a0fa366fdd651c8e07889 (patch)
treeab88036f84b91ddd4009f63a1bd4f9e52ffafae0 /tests/Tests/Readers
parentbaa25362a40fe905368f60222ebd8a533bcfe0f9 (diff)
[odt] Infer table's caption from the paragraph (#3224)
ODT's reader always put empty captions for the parsed tables. This commit 1) checks paragraphs that follow the table definition 2) treats specially a paragraph with a style named 'Table' 3) does some postprocessing of the paragraphs that combines tables followed immediately by captions The ODT writer used 'TableCaption' style name for the caption paragraph. This commit follows the open office approach which allows for appending captions to table but uses a built-in style named 'Table' instead of 'TableCaption'. Any users of odt format (both writer and reader) are therefore required to change the style's name to 'Table', if necessary.
Diffstat (limited to 'tests/Tests/Readers')
-rw-r--r--tests/Tests/Readers/Odt.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/Tests/Readers/Odt.hs b/tests/Tests/Readers/Odt.hs
index d6ed48f8d..cd764dd62 100644
--- a/tests/Tests/Readers/Odt.hs
+++ b/tests/Tests/Readers/Odt.hs
@@ -157,6 +157,7 @@ namesOfTestsComparingToNative = [ "blockquote"
, "referenceToListItem"
, "referenceToText"
, "simpleTable"
+ , "simpleTableWithCaption"
-- , "table"
, "unicode"
, "unorderedList"