From 3b2c50ed93dfd00ea18974a856f25e0a423693dc Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Mon, 29 Jun 2015 18:32:46 +0200 Subject: Fix RST reference names with special characters --- tests/Tests/Readers/RST.hs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/Tests/Readers/RST.hs') diff --git a/tests/Tests/Readers/RST.hs b/tests/Tests/Readers/RST.hs index 5eabec89a..7f1f3d044 100644 --- a/tests/Tests/Readers/RST.hs +++ b/tests/Tests/Readers/RST.hs @@ -68,6 +68,10 @@ tests = [ "line block with blank line" =: link "http://foo.bar.baz" "" "http://foo.bar.baz" <> ". " <> link "http://foo.bar/baz_(bam)" "" "http://foo.bar/baz_(bam)" <> " (" <> link "http://foo.bar" "" "http://foo.bar" <> ")") + , "Reference names with special characters" =: + ("A-1-B_2_C:3:D+4+E.5.F_\n\n" ++ + ".. _A-1-B_2_C:3:D+4+E.5.F: https://example.com\n") =?> + para (link "https://example.com" "" "A-1-B_2_C:3:D+4+E.5.F") , testGroup "literal / line / code blocks" [ "indented literal block" =: unlines [ "::" -- cgit v1.2.3