2017-08-10 21:04:08 +02:00
|
|
|
```
|
|
|
|
% pandoc -f rst -t native
|
|
|
|
.. csv-table:: Test
|
|
|
|
:widths: 10, 5, 10
|
|
|
|
:header: Flavor,Price,Slogan
|
|
|
|
:file: command/3533-rst-csv-tables.csv
|
|
|
|
^D
|
2020-03-28 23:22:48 +01:00
|
|
|
[Table ("",[],[]) (Caption Nothing
|
2020-04-04 22:35:42 +02:00
|
|
|
[Plain [Str "Test"]])
|
|
|
|
[(AlignDefault,ColWidth 0.4)
|
|
|
|
,(AlignDefault,ColWidth 0.2)
|
|
|
|
,(AlignDefault,ColWidth 0.4)]
|
|
|
|
(TableHead ("",[],[])
|
2020-03-28 23:22:48 +01:00
|
|
|
[Row ("",[],[])
|
2020-04-06 01:53:35 +02:00
|
|
|
[Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
2020-03-28 23:22:48 +01:00
|
|
|
[Plain [Str "Flavor"]]
|
2020-04-06 01:53:35 +02:00
|
|
|
,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
2020-03-28 23:22:48 +01:00
|
|
|
[Plain [Str "Price"]]
|
2020-04-06 01:53:35 +02:00
|
|
|
,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
2020-04-04 22:35:42 +02:00
|
|
|
[Plain [Str "Slogan"]]]])
|
2020-04-06 01:53:35 +02:00
|
|
|
[(TableBody ("",[],[]) (RowHeadColumns 0)
|
2020-04-04 22:35:42 +02:00
|
|
|
[]
|
|
|
|
[Row ("",[],[])
|
2020-04-06 01:53:35 +02:00
|
|
|
[Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
2020-04-04 22:35:42 +02:00
|
|
|
[Plain [Str "Albatross"]]
|
2020-04-06 01:53:35 +02:00
|
|
|
,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
2020-04-04 22:35:42 +02:00
|
|
|
[Plain [Str "2.99"]]
|
2020-04-06 01:53:35 +02:00
|
|
|
,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
2020-04-04 22:35:42 +02:00
|
|
|
[Plain [Str "On",Space,Str "a",Space,Str "stick!"]]]
|
|
|
|
,Row ("",[],[])
|
2020-04-06 01:53:35 +02:00
|
|
|
[Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
2020-04-04 22:35:42 +02:00
|
|
|
[Plain [Str "Crunchy",Space,Str "Frog"]]
|
2020-04-06 01:53:35 +02:00
|
|
|
,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
2020-04-04 22:35:42 +02:00
|
|
|
[Plain [Str "1.49"]]
|
2020-04-06 01:53:35 +02:00
|
|
|
,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
2020-04-04 22:35:42 +02:00
|
|
|
[Plain [Str "If",Space,Str "we",Space,Str "took",Space,Str "the",Space,Str "bones",Space,Str "out,",Space,Str "it",Space,Str "wouldn't",Space,Str "be",SoftBreak,Str "crunchy,",Space,Str "now",Space,Str "would",Space,Str "it?"]]]])]
|
|
|
|
(TableFoot ("",[],[])
|
|
|
|
[])]
|
2017-08-10 21:04:08 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
```
|
|
|
|
% pandoc -f rst -t native
|
|
|
|
.. csv-table:: Test
|
|
|
|
:header-rows: 1
|
|
|
|
:quote: '
|
|
|
|
:delim: space
|
|
|
|
|
|
|
|
'' 'a' 'b'
|
|
|
|
'cat''s' 3 4
|
|
|
|
'dog''s' 2 3
|
|
|
|
^D
|
2020-03-28 23:22:48 +01:00
|
|
|
[Table ("",[],[]) (Caption Nothing
|
2020-04-04 22:35:42 +02:00
|
|
|
[Plain [Str "Test"]])
|
|
|
|
[(AlignDefault,ColWidthDefault)
|
|
|
|
,(AlignDefault,ColWidthDefault)
|
|
|
|
,(AlignDefault,ColWidthDefault)]
|
|
|
|
(TableHead ("",[],[])
|
2020-03-28 23:22:48 +01:00
|
|
|
[Row ("",[],[])
|
2020-04-06 01:53:35 +02:00
|
|
|
[Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
2020-03-28 23:22:48 +01:00
|
|
|
[]
|
2020-04-06 01:53:35 +02:00
|
|
|
,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
2020-03-28 23:22:48 +01:00
|
|
|
[Plain [Str "a"]]
|
2020-04-06 01:53:35 +02:00
|
|
|
,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
2020-04-04 22:35:42 +02:00
|
|
|
[Plain [Str "b"]]]])
|
2020-04-06 01:53:35 +02:00
|
|
|
[(TableBody ("",[],[]) (RowHeadColumns 0)
|
2020-04-04 22:35:42 +02:00
|
|
|
[]
|
|
|
|
[Row ("",[],[])
|
2020-04-06 01:53:35 +02:00
|
|
|
[Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
2020-04-04 22:35:42 +02:00
|
|
|
[Plain [Str "cat's"]]
|
2020-04-06 01:53:35 +02:00
|
|
|
,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
2020-04-04 22:35:42 +02:00
|
|
|
[Plain [Str "3"]]
|
2020-04-06 01:53:35 +02:00
|
|
|
,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
2020-04-04 22:35:42 +02:00
|
|
|
[Plain [Str "4"]]]
|
|
|
|
,Row ("",[],[])
|
2020-04-06 01:53:35 +02:00
|
|
|
[Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
2020-04-04 22:35:42 +02:00
|
|
|
[Plain [Str "dog's"]]
|
2020-04-06 01:53:35 +02:00
|
|
|
,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
2020-04-04 22:35:42 +02:00
|
|
|
[Plain [Str "2"]]
|
2020-04-06 01:53:35 +02:00
|
|
|
,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
2020-04-04 22:35:42 +02:00
|
|
|
[Plain [Str "3"]]]])]
|
|
|
|
(TableFoot ("",[],[])
|
|
|
|
[])]
|
2017-08-10 21:04:08 +02:00
|
|
|
```
|
|
|
|
|
|
|
|
```
|
|
|
|
% pandoc -f rst -t native
|
|
|
|
.. csv-table:: Test
|
|
|
|
:escape: \
|
|
|
|
|
|
|
|
"1","\""
|
|
|
|
^D
|
2020-03-28 23:22:48 +01:00
|
|
|
[Table ("",[],[]) (Caption Nothing
|
2020-04-04 22:35:42 +02:00
|
|
|
[Plain [Str "Test"]])
|
|
|
|
[(AlignDefault,ColWidthDefault)
|
|
|
|
,(AlignDefault,ColWidthDefault)]
|
|
|
|
(TableHead ("",[],[])
|
2020-04-10 02:08:49 +02:00
|
|
|
[])
|
2020-04-06 01:53:35 +02:00
|
|
|
[(TableBody ("",[],[]) (RowHeadColumns 0)
|
2020-04-04 22:35:42 +02:00
|
|
|
[]
|
|
|
|
[Row ("",[],[])
|
2020-04-06 01:53:35 +02:00
|
|
|
[Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
2020-04-04 22:35:42 +02:00
|
|
|
[Plain [Str "1"]]
|
2020-04-06 01:53:35 +02:00
|
|
|
,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
2020-04-04 22:35:42 +02:00
|
|
|
[Plain [Str "\""]]]])]
|
|
|
|
(TableFoot ("",[],[])
|
|
|
|
[])]
|
2017-08-10 21:04:08 +02:00
|
|
|
```
|
|
|
|
|