aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>2009-06-25 02:01:41 +0000
committerfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>2009-06-25 02:01:41 +0000
commit313405f59aa09b6f1a027002d35bc75cb15c976e (patch)
tree64e02b18b5342caa4e52ce382478d6c99650dc69 /tests
parent15258f66f082879a4c49f0130ed05cac32074a1b (diff)
downloadpandoc-313405f59aa09b6f1a027002d35bc75cb15c976e.tar.gz
Allow continuation lines in line blocks.
Also added test cases for line blocks for RST reader. Resolves Issue #149. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1583 788f1e2b-df1e-0410-8736-df70ead52e1b
Diffstat (limited to 'tests')
-rw-r--r--tests/rst-reader.native5
-rw-r--r--tests/rst-reader.rst13
2 files changed, 17 insertions, 1 deletions
diff --git a/tests/rst-reader.native b/tests/rst-reader.native
index e0cedd59c..88a036ebc 100644
--- a/tests/rst-reader.native
+++ b/tests/rst-reader.native
@@ -234,5 +234,8 @@ Pandoc (Meta [Str "Pandoc",Space,Str "Test",Space,Str "Suite",Str ":",Space,Str
, Header 1 [Str "Comments"]
, Para [Str "First",Space,Str "paragraph"]
, Para [Str "Another",Space,Str "paragraph"]
-, Para [Str "A",Space,Str "third",Space,Str "paragraph"] ]
+, Para [Str "A",Space,Str "third",Space,Str "paragraph"]
+, Header 1 [Str "Line",Space,Str "blocks"]
+, Para [Str "But",Space,Str "can",Space,Str "a",Space,Str "bee",Space,Str "be",Space,Str "said",Space,Str "to",Space,Str "be",LineBreak,Str " ",Str "or",Space,Str "not",Space,Str "to",Space,Str "be",Space,Str "an",Space,Str "entire",Space,Str "bee,",LineBreak,Str " ",Str "when",Space,Str "half",Space,Str "the",Space,Str "bee",Space,Str "is",Space,Str "not",Space,Str "a",Space,Str "bee,",LineBreak,Str " ",Str "due",Space,Str "to",Space,Str "some",Space,Str "ancient",Space,Str "injury?"]
+, Para [Str "Continuation",Space,Str "line",LineBreak,Str " ",Str "and",Space,Str "another"] ]
diff --git a/tests/rst-reader.rst b/tests/rst-reader.rst
index 09ff2b75c..2fcb4a5b9 100644
--- a/tests/rst-reader.rst
+++ b/tests/rst-reader.rst
@@ -428,3 +428,16 @@ Another paragraph
A third paragraph
+Line blocks
+===========
+
+| But can a bee be said to be
+| or not to be an entire bee,
+| when half the bee is not a bee,
+| due to some ancient injury?
+
+| Continuation
+ line
+| and
+ another
+