summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorJohn MacFarlane <fiddlosopher@gmail.com>2013-01-27 22:13:05 -0800
committerJohn MacFarlane <fiddlosopher@gmail.com>2013-01-27 22:13:05 -0800
commit72d11ad20bd5f291c373b1aeb09cc869905b0f26 (patch)
tree653510a5db888923bc8cd658e8bbd7088c681c73 /tests
parent9d549ab683ba4d98a295dc156ea4b81f57f383a7 (diff)
Markdown/RST reader: Skip blank lines.
This fixes a subtle regression involving grid tables with empty cells. Closes #732. Also added test for grid table with empty cells.
Diffstat (limited to 'tests')
-rw-r--r--tests/markdown-reader-more.native8
-rw-r--r--tests/markdown-reader-more.txt13
2 files changed, 17 insertions, 4 deletions
diff --git a/tests/markdown-reader-more.native b/tests/markdown-reader-more.native
index 382aa056c..69b29992c 100644
--- a/tests/markdown-reader-more.native
+++ b/tests/markdown-reader-more.native
@@ -118,4 +118,10 @@
[[Plain [Str "b"]]
,[Plain [Str "b",Space,Str "2"]]
,[Plain [Str "b",Space,Str "2"]]]]
- ,[Para [Str "c",Space,Str "c",Space,Str "2",Space,Str "c",Space,Str "2"]]]]]
+ ,[Para [Str "c",Space,Str "c",Space,Str "2",Space,Str "c",Space,Str "2"]]]]
+,Para [Str "Empty",Space,Str "cells"]
+,Table [] [AlignDefault,AlignDefault] [5.555555555555555e-2,5.555555555555555e-2]
+ [[]
+ ,[]]
+ [[[]
+ ,[]]]]
diff --git a/tests/markdown-reader-more.txt b/tests/markdown-reader-more.txt
index b76b6d985..e471100d2 100644
--- a/tests/markdown-reader-more.txt
+++ b/tests/markdown-reader-more.txt
@@ -196,8 +196,15 @@ Multiple blocks in a cell
+------------------+-----------+------------+
| # col 1 | # col 2 | # col 3 |
| col 1 | col 2 | col 3 |
-+------------------+-----------+------------+
++------------------+-----------+------------+
| r1 a | - b | c |
-| | - b 2 | c 2 |
-| r1 bis | - b 2 | c 2 |
+| | - b 2 | c 2 |
+| r1 bis | - b 2 | c 2 |
+------------------+-----------+------------+
+
+Empty cells
+
++---+---+
+| | |
++---+---+
+