git.iko.soy/typeable/pandoc
on master help sign in
Merge pull request #4291 from hmenke/xtables
be929bcJohn MacFarlane
src/Text/Pandoc/Writers/ConTeXt.hs+1−1
@@ -267,7 +267,7 @@ blockToConTeXt (Table caption aligns widths heads rows) = do
267 return $ "\\startplacetable" <> brackets (
267 return $ "\\startplacetable" <> brackets (
268 if null caption
268 if null caption
269 then "location=none"
269 then "location=none"
270− else "caption=" <> braces captionText
270+ else "title=" <> braces captionText
271 ) $$ body $$ "\\stopplacetable" <> blankline
271 ) $$ body $$ "\\stopplacetable" <> blankline
272
272
273tableToConTeXt :: PandocMonad m => Tabl -> Doc -> [Doc] -> WM m Doc
273tableToConTeXt :: PandocMonad m => Tabl -> Doc -> [Doc] -> WM m Doc
test/Tests/Writers/ConTeXt.hs+1−1
@@ -92,7 +92,7 @@ tests = [ testGroup "inline code"
92 plain $ text "3.3",
92 plain $ text "3.3",
93 plain $ text "3.4"]]
93 plain $ text "3.4"]]
94 in table caption aligns headers rows
94 in table caption aligns headers rows
95− =?> unlines [ "\\startplacetable[caption={Table 1}]"
95+ =?> unlines [ "\\startplacetable[title={Table 1}]"
96 , "\\startTABLE"
96 , "\\startTABLE"
97 , "\\startTABLEhead"
97 , "\\startTABLEhead"
98 , "\\NC[align=left] Right"
98 , "\\NC[align=left] Right"
test/tables.context+3−3
@@ -1,6 +1,6 @@
1Simple table with caption:
1Simple table with caption:
2
2
3−\startplacetable[caption={Demonstration of simple table syntax.}]
3+\startplacetable[title={Demonstration of simple table syntax.}]
4\startxtable
4\startxtable
5\startxtablehead[head]
5\startxtablehead[head]
6\startxrow
6\startxrow
@@ -74,7 +74,7 @@ Simple table without caption:
74
74
75Simple table indented two spaces:
75Simple table indented two spaces:
76
76
77−\startplacetable[caption={Demonstration of simple table syntax.}]
77+\startplacetable[title={Demonstration of simple table syntax.}]
78\startxtable
78\startxtable
79\startxtablehead[head]
79\startxtablehead[head]
80\startxrow
80\startxrow
@@ -111,7 +111,7 @@ Simple table indented two spaces:
111
111
112Multiline table with caption:
112Multiline table with caption:
113
113
114−\startplacetable[caption={Here's the caption. It may span multiple lines.}]
114+\startplacetable[title={Here's the caption. It may span multiple lines.}]
115\startxtable
115\startxtable
116\startxtablehead[head]
116\startxtablehead[head]
117\startxrow
117\startxrow