2017-03-21 14:16:46 +01:00
|
|
|
Correctly handle empty row:
|
|
|
|
```
|
|
|
|
% pandoc -f markdown -t rst
|
|
|
|
+---+---+
|
|
|
|
| 1 | 2 |
|
|
|
|
+---+---+
|
|
|
|
| | |
|
|
|
|
+---+---+
|
|
|
|
^D
|
|
|
|
+---+---+
|
|
|
|
| 1 | 2 |
|
|
|
|
+---+---+
|
|
|
|
| | |
|
|
|
|
+---+---+
|
|
|
|
```
|
2017-03-22 14:36:12 +01:00
|
|
|
|
|
|
|
Temporarily added these to figure out what is happening
|
|
|
|
on Windows builds.
|
|
|
|
```
|
|
|
|
% pandoc -f markdown -t native
|
|
|
|
+---+---+
|
|
|
|
| 1 | 2 |
|
|
|
|
+---+---+
|
|
|
|
| | |
|
|
|
|
+---+---+
|
|
|
|
^D
|
2021-09-19 21:09:51 +02:00
|
|
|
[ Table
|
2021-09-29 06:17:53 +02:00
|
|
|
( "" , [] , [] )
|
|
|
|
(Caption Nothing [])
|
|
|
|
[ ( AlignDefault , ColWidth 5.555555555555555e-2 )
|
|
|
|
, ( AlignDefault , ColWidth 5.555555555555555e-2 )
|
2021-09-19 21:09:51 +02:00
|
|
|
]
|
2021-09-29 06:17:53 +02:00
|
|
|
(TableHead ( "" , [] , [] ) [])
|
|
|
|
[ TableBody
|
|
|
|
( "" , [] , [] )
|
|
|
|
(RowHeadColumns 0)
|
|
|
|
[]
|
|
|
|
[ Row
|
|
|
|
( "" , [] , [] )
|
|
|
|
[ Cell
|
|
|
|
( "" , [] , [] )
|
|
|
|
AlignDefault
|
|
|
|
(RowSpan 1)
|
|
|
|
(ColSpan 1)
|
|
|
|
[ Plain [ Str "1" ] ]
|
|
|
|
, Cell
|
|
|
|
( "" , [] , [] )
|
|
|
|
AlignDefault
|
|
|
|
(RowSpan 1)
|
|
|
|
(ColSpan 1)
|
|
|
|
[ Plain [ Str "2" ] ]
|
|
|
|
]
|
|
|
|
, Row
|
|
|
|
( "" , [] , [] )
|
|
|
|
[ Cell
|
|
|
|
( "" , [] , [] ) AlignDefault (RowSpan 1) (ColSpan 1) []
|
|
|
|
, Cell
|
|
|
|
( "" , [] , [] ) AlignDefault (RowSpan 1) (ColSpan 1) []
|
|
|
|
]
|
|
|
|
]
|
|
|
|
]
|
|
|
|
(TableFoot ( "" , [] , [] ) [])
|
2021-09-19 21:09:51 +02:00
|
|
|
]
|
2017-03-22 14:36:12 +01:00
|
|
|
```
|
|
|
|
|
|
|
|
```
|
|
|
|
% pandoc -f native -t rst
|
2020-03-28 23:22:48 +01:00
|
|
|
[Table ("",[],[]) (Caption Nothing
|
2020-04-04 22:35:42 +02:00
|
|
|
[])
|
|
|
|
[(AlignDefault,ColWidth 5.555555555555555e-2)
|
|
|
|
,(AlignDefault,ColWidth 5.555555555555555e-2)]
|
|
|
|
(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-04-04 22:35:42 +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
|
|
|
[Para [Str "1"]]
|
2020-04-06 01:53:35 +02:00
|
|
|
,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
2020-04-04 22:35:42 +02:00
|
|
|
[Para [Str "2"]]]
|
|
|
|
,Row ("",[],[])
|
2020-04-06 01:53:35 +02:00
|
|
|
[Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
2020-04-04 22:35:42 +02:00
|
|
|
[]
|
2020-04-06 01:53:35 +02:00
|
|
|
,Cell ("",[],[]) AlignDefault (RowSpan 1) (ColSpan 1)
|
2020-04-04 22:35:42 +02:00
|
|
|
[]]])]
|
|
|
|
(TableFoot ("",[],[])
|
|
|
|
[])]
|
2017-03-22 14:36:12 +01:00
|
|
|
^D
|
|
|
|
+---+---+
|
|
|
|
| 1 | 2 |
|
|
|
|
+---+---+
|
|
|
|
| | |
|
|
|
|
+---+---+
|
|
|
|
```
|