From 0e4eb8374992298366b6b003b5f97c7cd8868349 Mon Sep 17 00:00:00 2001 From: fiddlosopher Date: Sat, 1 Nov 2008 21:05:33 +0000 Subject: Markdown reader: cleaner handling of spaces in URLs. Consecutive spaces are now collapsed into one %20, and final spaces are removed. Also, a test case has been added. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1477 788f1e2b-df1e-0410-8736-df70ead52e1b --- tests/markdown-reader-more.native | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tests/markdown-reader-more.native') diff --git a/tests/markdown-reader-more.native b/tests/markdown-reader-more.native index 5fea0f02d..3d38e7a9a 100644 --- a/tests/markdown-reader-more.native +++ b/tests/markdown-reader-more.native @@ -4,5 +4,8 @@ Pandoc (Meta [] [] "") , Para [Link [Str "foo"] ("/url",""),Space,Str "and",Space,Link [Str "bar"] ("/url","title")] , Header 2 [Str "Raw",Space,Str "ConTeXt",Space,Str "environments"] , Para [TeX "\\placeformula",Space,TeX "\\startformula\n L_{1} = L_{2}\n \\stopformula"] -, Para [TeX "\\start[a2]\n\\start[a2]\n\\stop[a2]\n\\stop[a2]"] ] +, Para [TeX "\\start[a2]\n\\start[a2]\n\\stop[a2]\n\\stop[a2]"] +, Header 2 [Str "URLs",Space,Str "with",Space,Str "spaces"] +, Para [Link [Str "foo"] ("/bar%20and%20baz",""),Space,Link [Str "foo"] ("/bar%20and%20baz",""),Space,Link [Str "foo"] ("/bar%20and%20baz",""),Space,Link [Str "foo"] ("bar%20baz","title")] +, Para [Link [Str "baz"] ("/foo%20foo",""),Space,Link [Str "bam"] ("/foo%20fee",""),Space,Link [Str "bork"] ("/foo/zee%20zob","title")] ] -- cgit v1.2.3