aboutsummaryrefslogtreecommitdiff
path: root/html-test/src/Bug308.hs
diff options
context:
space:
mode:
authorMateusz Kowalczyk <fuuzetsu@fuuzetsu.co.uk>2014-06-25 10:01:55 +0200
committerMateusz Kowalczyk <fuuzetsu@fuuzetsu.co.uk>2014-06-25 10:36:54 +0200
commit526067188c056a5d73e7e44671ca98baf12d666b (patch)
tree24af2bada672ab2f47938ab76dd3b51f6de3c833 /html-test/src/Bug308.hs
parent5412c262f403e52be45d607b34eb3a5806ea2a76 (diff)
Fix anchors. Closes #308.
Diffstat (limited to 'html-test/src/Bug308.hs')
-rw-r--r--html-test/src/Bug308.hs21
1 files changed, 21 insertions, 0 deletions
diff --git a/html-test/src/Bug308.hs b/html-test/src/Bug308.hs
new file mode 100644
index 00000000..3adb3746
--- /dev/null
+++ b/html-test/src/Bug308.hs
@@ -0,0 +1,21 @@
+-- From 2.14.x onwards we were forgetting to swallow ‘#’ as a special
+-- character resulting in broken anchors if they accured
+-- mid-paragraph. Here we check that anchors get generated as
+-- expected.
+module Bug308 where
+
+-- | start#startAnchor# followed by middle#middleAnchor# and end#endAnchor#
+f :: ()
+f = ()
+
+{-|
+start "Bug308#startAnchor"
+
+startOldStyle "Bug308\#startAnchor"
+
+middle "Bug308#middleAnchor"
+
+end "Bug308#middleAnchor"
+-}
+g :: ()
+g = ()