Add test for #7488.
This commit is contained in:
parent
3d7120083a
commit
7ca4233793
3 changed files with 447 additions and 0 deletions
|
@ -44,5 +44,6 @@ tests = map rtfTest [ "footnote"
|
|||
, "list_complex"
|
||||
, "bookmark"
|
||||
, "table_simple"
|
||||
, "table_error_codes"
|
||||
]
|
||||
|
||||
|
|
146
test/rtf/table_error_codes.native
Normal file
146
test/rtf/table_error_codes.native
Normal file
|
@ -0,0 +1,146 @@
|
|||
Pandoc (Meta {unMeta = fromList []})
|
||||
[Table ("",[],[]) (Caption Nothing
|
||||
[])
|
||||
[(AlignDefault,ColWidthDefault)
|
||||
,(AlignDefault,ColWidthDefault)]
|
||||
(TableHead ("",[],[])
|
||||
[])
|
||||
[(TableBody ("",[],[]) (RowHeadColumns 0)
|
||||
[]
|
||||
[Row ("",[],[])
|
||||
[Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
||||
[Para [Str "Code"]]
|
||||
,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
||||
[Para [Str "Error"]]]
|
||||
,Row ("",[],[])
|
||||
[Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
||||
[Para [Str "3"]]
|
||||
,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
||||
[Para [Str "PandocFailOnWarningError"]]]
|
||||
,Row ("",[],[])
|
||||
[Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
||||
[Para [Str "4"]]
|
||||
,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
||||
[Para [Str "PandocAppError"]]]
|
||||
,Row ("",[],[])
|
||||
[Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
||||
[Para [Str "5"]]
|
||||
,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
||||
[Para [Str "PandocTemplateError"]]]
|
||||
,Row ("",[],[])
|
||||
[Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
||||
[Para [Str "6"]]
|
||||
,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
||||
[Para [Str "PandocOptionError"]]]
|
||||
,Row ("",[],[])
|
||||
[Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
||||
[Para [Str "21"]]
|
||||
,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
||||
[Para [Str "PandocUnknownReaderError"]]]
|
||||
,Row ("",[],[])
|
||||
[Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
||||
[Para [Str "22"]]
|
||||
,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
||||
[Para [Str "PandocUnknownWriterError"]]]
|
||||
,Row ("",[],[])
|
||||
[Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
||||
[Para [Str "23"]]
|
||||
,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
||||
[Para [Str "PandocUnsupportedExtensionError"]]]
|
||||
,Row ("",[],[])
|
||||
[Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
||||
[Para [Str "24"]]
|
||||
,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
||||
[Para [Str "PandocCiteprocError"]]]
|
||||
,Row ("",[],[])
|
||||
[Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
||||
[Para [Str "31"]]
|
||||
,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
||||
[Para [Str "PandocEpubSubdirectoryError"]]]
|
||||
,Row ("",[],[])
|
||||
[Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
||||
[Para [Str "43"]]
|
||||
,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
||||
[Para [Str "PandocPDFError"]]]
|
||||
,Row ("",[],[])
|
||||
[Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
||||
[Para [Str "44"]]
|
||||
,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
||||
[Para [Str "PandocXMLError"]]]
|
||||
,Row ("",[],[])
|
||||
[Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
||||
[Para [Str "47"]]
|
||||
,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
||||
[Para [Str "PandocPDFProgramNotFoundError"]]]
|
||||
,Row ("",[],[])
|
||||
[Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
||||
[Para [Str "61"]]
|
||||
,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
||||
[Para [Str "PandocHttpError"]]]
|
||||
,Row ("",[],[])
|
||||
[Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
||||
[Para [Str "62"]]
|
||||
,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
||||
[Para [Str "PandocShouldNeverHappenError"]]]
|
||||
,Row ("",[],[])
|
||||
[Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
||||
[Para [Str "63"]]
|
||||
,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
||||
[Para [Str "PandocSomeError"]]]
|
||||
,Row ("",[],[])
|
||||
[Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
||||
[Para [Str "64"]]
|
||||
,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
||||
[Para [Str "PandocParseError"]]]
|
||||
,Row ("",[],[])
|
||||
[Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
||||
[Para [Str "65"]]
|
||||
,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
||||
[Para [Str "PandocParsecError"]]]
|
||||
,Row ("",[],[])
|
||||
[Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
||||
[Para [Str "66"]]
|
||||
,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
||||
[Para [Str "PandocMakePDFError"]]]
|
||||
,Row ("",[],[])
|
||||
[Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
||||
[Para [Str "67"]]
|
||||
,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
||||
[Para [Str "PandocSyntaxMapError"]]]
|
||||
,Row ("",[],[])
|
||||
[Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
||||
[Para [Str "83"]]
|
||||
,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
||||
[Para [Str "PandocFilterError"]]]
|
||||
,Row ("",[],[])
|
||||
[Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
||||
[Para [Str "91"]]
|
||||
,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
||||
[Para [Str "PandocMacroLoop"]]]
|
||||
,Row ("",[],[])
|
||||
[Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
||||
[Para [Str "92"]]
|
||||
,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
||||
[Para [Str "PandocUTF8DecodingError"]]]
|
||||
,Row ("",[],[])
|
||||
[Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
||||
[Para [Str "93"]]
|
||||
,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
||||
[Para [Str "PandocIpynbDecodingError"]]]
|
||||
,Row ("",[],[])
|
||||
[Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
||||
[Para [Str "94"]]
|
||||
,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
||||
[Para [Str "PandocUnsupportedCharsetError"]]]
|
||||
,Row ("",[],[])
|
||||
[Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
||||
[Para [Str "97"]]
|
||||
,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
||||
[Para [Str "PandocCouldNotFindDataFileError"]]]
|
||||
,Row ("",[],[])
|
||||
[Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
||||
[Para [Str "99"]]
|
||||
,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
||||
[Para [Str "PandocResourceNotFound"]]]])]
|
||||
(TableFoot ("",[],[])
|
||||
[])]
|
300
test/rtf/table_error_codes.rtf
Normal file
300
test/rtf/table_error_codes.rtf
Normal file
|
@ -0,0 +1,300 @@
|
|||
{\rtf1\ansi
|
||||
{
|
||||
\trowd \trgaph120
|
||||
\clbrdrb\brdrs\cellx4320\clbrdrb\brdrs\cellx8640
|
||||
\trkeep\intbl
|
||||
{
|
||||
{{\pard\intbl \qr \f0 \sa0 \li0 \fi0 Code\par}
|
||||
\cell}
|
||||
{{\pard\intbl \ql \f0 \sa0 \li0 \fi0 Error\par}
|
||||
\cell}
|
||||
}
|
||||
\intbl\row}
|
||||
{
|
||||
\trowd \trgaph120
|
||||
\cellx4320\cellx8640
|
||||
\trkeep\intbl
|
||||
{
|
||||
{{\pard\intbl \qr \f0 \sa0 \li0 \fi0 3\par}
|
||||
\cell}
|
||||
{{\pard\intbl \ql \f0 \sa0 \li0 \fi0 PandocFailOnWarningError\par}
|
||||
\cell}
|
||||
}
|
||||
\intbl\row}
|
||||
{
|
||||
\trowd \trgaph120
|
||||
\cellx4320\cellx8640
|
||||
\trkeep\intbl
|
||||
{
|
||||
{{\pard\intbl \qr \f0 \sa0 \li0 \fi0 4\par}
|
||||
\cell}
|
||||
{{\pard\intbl \ql \f0 \sa0 \li0 \fi0 PandocAppError\par}
|
||||
\cell}
|
||||
}
|
||||
\intbl\row}
|
||||
{
|
||||
\trowd \trgaph120
|
||||
\cellx4320\cellx8640
|
||||
\trkeep\intbl
|
||||
{
|
||||
{{\pard\intbl \qr \f0 \sa0 \li0 \fi0 5\par}
|
||||
\cell}
|
||||
{{\pard\intbl \ql \f0 \sa0 \li0 \fi0 PandocTemplateError\par}
|
||||
\cell}
|
||||
}
|
||||
\intbl\row}
|
||||
{
|
||||
\trowd \trgaph120
|
||||
\cellx4320\cellx8640
|
||||
\trkeep\intbl
|
||||
{
|
||||
{{\pard\intbl \qr \f0 \sa0 \li0 \fi0 6\par}
|
||||
\cell}
|
||||
{{\pard\intbl \ql \f0 \sa0 \li0 \fi0 PandocOptionError\par}
|
||||
\cell}
|
||||
}
|
||||
\intbl\row}
|
||||
{
|
||||
\trowd \trgaph120
|
||||
\cellx4320\cellx8640
|
||||
\trkeep\intbl
|
||||
{
|
||||
{{\pard\intbl \qr \f0 \sa0 \li0 \fi0 21\par}
|
||||
\cell}
|
||||
{{\pard\intbl \ql \f0 \sa0 \li0 \fi0 PandocUnknownReaderError\par}
|
||||
\cell}
|
||||
}
|
||||
\intbl\row}
|
||||
{
|
||||
\trowd \trgaph120
|
||||
\cellx4320\cellx8640
|
||||
\trkeep\intbl
|
||||
{
|
||||
{{\pard\intbl \qr \f0 \sa0 \li0 \fi0 22\par}
|
||||
\cell}
|
||||
{{\pard\intbl \ql \f0 \sa0 \li0 \fi0 PandocUnknownWriterError\par}
|
||||
\cell}
|
||||
}
|
||||
\intbl\row}
|
||||
{
|
||||
\trowd \trgaph120
|
||||
\cellx4320\cellx8640
|
||||
\trkeep\intbl
|
||||
{
|
||||
{{\pard\intbl \qr \f0 \sa0 \li0 \fi0 23\par}
|
||||
\cell}
|
||||
{{\pard\intbl \ql \f0 \sa0 \li0 \fi0 PandocUnsupportedExtensionError\par}
|
||||
\cell}
|
||||
}
|
||||
\intbl\row}
|
||||
{
|
||||
\trowd \trgaph120
|
||||
\cellx4320\cellx8640
|
||||
\trkeep\intbl
|
||||
{
|
||||
{{\pard\intbl \qr \f0 \sa0 \li0 \fi0 24\par}
|
||||
\cell}
|
||||
{{\pard\intbl \ql \f0 \sa0 \li0 \fi0 PandocCiteprocError\par}
|
||||
\cell}
|
||||
}
|
||||
\intbl\row}
|
||||
{
|
||||
\trowd \trgaph120
|
||||
\cellx4320\cellx8640
|
||||
\trkeep\intbl
|
||||
{
|
||||
{{\pard\intbl \qr \f0 \sa0 \li0 \fi0 31\par}
|
||||
\cell}
|
||||
{{\pard\intbl \ql \f0 \sa0 \li0 \fi0 PandocEpubSubdirectoryError\par}
|
||||
\cell}
|
||||
}
|
||||
\intbl\row}
|
||||
{
|
||||
\trowd \trgaph120
|
||||
\cellx4320\cellx8640
|
||||
\trkeep\intbl
|
||||
{
|
||||
{{\pard\intbl \qr \f0 \sa0 \li0 \fi0 43\par}
|
||||
\cell}
|
||||
{{\pard\intbl \ql \f0 \sa0 \li0 \fi0 PandocPDFError\par}
|
||||
\cell}
|
||||
}
|
||||
\intbl\row}
|
||||
{
|
||||
\trowd \trgaph120
|
||||
\cellx4320\cellx8640
|
||||
\trkeep\intbl
|
||||
{
|
||||
{{\pard\intbl \qr \f0 \sa0 \li0 \fi0 44\par}
|
||||
\cell}
|
||||
{{\pard\intbl \ql \f0 \sa0 \li0 \fi0 PandocXMLError\par}
|
||||
\cell}
|
||||
}
|
||||
\intbl\row}
|
||||
{
|
||||
\trowd \trgaph120
|
||||
\cellx4320\cellx8640
|
||||
\trkeep\intbl
|
||||
{
|
||||
{{\pard\intbl \qr \f0 \sa0 \li0 \fi0 47\par}
|
||||
\cell}
|
||||
{{\pard\intbl \ql \f0 \sa0 \li0 \fi0 PandocPDFProgramNotFoundError\par}
|
||||
\cell}
|
||||
}
|
||||
\intbl\row}
|
||||
{
|
||||
\trowd \trgaph120
|
||||
\cellx4320\cellx8640
|
||||
\trkeep\intbl
|
||||
{
|
||||
{{\pard\intbl \qr \f0 \sa0 \li0 \fi0 61\par}
|
||||
\cell}
|
||||
{{\pard\intbl \ql \f0 \sa0 \li0 \fi0 PandocHttpError\par}
|
||||
\cell}
|
||||
}
|
||||
\intbl\row}
|
||||
{
|
||||
\trowd \trgaph120
|
||||
\cellx4320\cellx8640
|
||||
\trkeep\intbl
|
||||
{
|
||||
{{\pard\intbl \qr \f0 \sa0 \li0 \fi0 62\par}
|
||||
\cell}
|
||||
{{\pard\intbl \ql \f0 \sa0 \li0 \fi0 PandocShouldNeverHappenError\par}
|
||||
\cell}
|
||||
}
|
||||
\intbl\row}
|
||||
{
|
||||
\trowd \trgaph120
|
||||
\cellx4320\cellx8640
|
||||
\trkeep\intbl
|
||||
{
|
||||
{{\pard\intbl \qr \f0 \sa0 \li0 \fi0 63\par}
|
||||
\cell}
|
||||
{{\pard\intbl \ql \f0 \sa0 \li0 \fi0 PandocSomeError\par}
|
||||
\cell}
|
||||
}
|
||||
\intbl\row}
|
||||
{
|
||||
\trowd \trgaph120
|
||||
\cellx4320\cellx8640
|
||||
\trkeep\intbl
|
||||
{
|
||||
{{\pard\intbl \qr \f0 \sa0 \li0 \fi0 64\par}
|
||||
\cell}
|
||||
{{\pard\intbl \ql \f0 \sa0 \li0 \fi0 PandocParseError\par}
|
||||
\cell}
|
||||
}
|
||||
\intbl\row}
|
||||
{
|
||||
\trowd \trgaph120
|
||||
\cellx4320\cellx8640
|
||||
\trkeep\intbl
|
||||
{
|
||||
{{\pard\intbl \qr \f0 \sa0 \li0 \fi0 65\par}
|
||||
\cell}
|
||||
{{\pard\intbl \ql \f0 \sa0 \li0 \fi0 PandocParsecError\par}
|
||||
\cell}
|
||||
}
|
||||
\intbl\row}
|
||||
{
|
||||
\trowd \trgaph120
|
||||
\cellx4320\cellx8640
|
||||
\trkeep\intbl
|
||||
{
|
||||
{{\pard\intbl \qr \f0 \sa0 \li0 \fi0 66\par}
|
||||
\cell}
|
||||
{{\pard\intbl \ql \f0 \sa0 \li0 \fi0 PandocMakePDFError\par}
|
||||
\cell}
|
||||
}
|
||||
\intbl\row}
|
||||
{
|
||||
\trowd \trgaph120
|
||||
\cellx4320\cellx8640
|
||||
\trkeep\intbl
|
||||
{
|
||||
{{\pard\intbl \qr \f0 \sa0 \li0 \fi0 67\par}
|
||||
\cell}
|
||||
{{\pard\intbl \ql \f0 \sa0 \li0 \fi0 PandocSyntaxMapError\par}
|
||||
\cell}
|
||||
}
|
||||
\intbl\row}
|
||||
{
|
||||
\trowd \trgaph120
|
||||
\cellx4320\cellx8640
|
||||
\trkeep\intbl
|
||||
{
|
||||
{{\pard\intbl \qr \f0 \sa0 \li0 \fi0 83\par}
|
||||
\cell}
|
||||
{{\pard\intbl \ql \f0 \sa0 \li0 \fi0 PandocFilterError\par}
|
||||
\cell}
|
||||
}
|
||||
\intbl\row}
|
||||
{
|
||||
\trowd \trgaph120
|
||||
\cellx4320\cellx8640
|
||||
\trkeep\intbl
|
||||
{
|
||||
{{\pard\intbl \qr \f0 \sa0 \li0 \fi0 91\par}
|
||||
\cell}
|
||||
{{\pard\intbl \ql \f0 \sa0 \li0 \fi0 PandocMacroLoop\par}
|
||||
\cell}
|
||||
}
|
||||
\intbl\row}
|
||||
{
|
||||
\trowd \trgaph120
|
||||
\cellx4320\cellx8640
|
||||
\trkeep\intbl
|
||||
{
|
||||
{{\pard\intbl \qr \f0 \sa0 \li0 \fi0 92\par}
|
||||
\cell}
|
||||
{{\pard\intbl \ql \f0 \sa0 \li0 \fi0 PandocUTF8DecodingError\par}
|
||||
\cell}
|
||||
}
|
||||
\intbl\row}
|
||||
{
|
||||
\trowd \trgaph120
|
||||
\cellx4320\cellx8640
|
||||
\trkeep\intbl
|
||||
{
|
||||
{{\pard\intbl \qr \f0 \sa0 \li0 \fi0 93\par}
|
||||
\cell}
|
||||
{{\pard\intbl \ql \f0 \sa0 \li0 \fi0 PandocIpynbDecodingError\par}
|
||||
\cell}
|
||||
}
|
||||
\intbl\row}
|
||||
{
|
||||
\trowd \trgaph120
|
||||
\cellx4320\cellx8640
|
||||
\trkeep\intbl
|
||||
{
|
||||
{{\pard\intbl \qr \f0 \sa0 \li0 \fi0 94\par}
|
||||
\cell}
|
||||
{{\pard\intbl \ql \f0 \sa0 \li0 \fi0 PandocUnsupportedCharsetError\par}
|
||||
\cell}
|
||||
}
|
||||
\intbl\row}
|
||||
{
|
||||
\trowd \trgaph120
|
||||
\cellx4320\cellx8640
|
||||
\trkeep\intbl
|
||||
{
|
||||
{{\pard\intbl \qr \f0 \sa0 \li0 \fi0 97\par}
|
||||
\cell}
|
||||
{{\pard\intbl \ql \f0 \sa0 \li0 \fi0 PandocCouldNotFindDataFileError\par}
|
||||
\cell}
|
||||
}
|
||||
\intbl\row}
|
||||
{
|
||||
\trowd \trgaph120
|
||||
\cellx4320\cellx8640
|
||||
\trkeep\intbl
|
||||
{
|
||||
{{\pard\intbl \qr \f0 \sa0 \li0 \fi0 99\par}
|
||||
\cell}
|
||||
{{\pard\intbl \ql \f0 \sa0 \li0 \fi0 PandocResourceNotFound\par}
|
||||
\cell}
|
||||
}
|
||||
\intbl\row}
|
||||
{\pard \ql \f0 \sa180 \li0 \fi0 \par}
|
||||
}
|
Loading…
Reference in a new issue