aboutsummaryrefslogtreecommitdiff
path: root/test/Tests
diff options
context:
space:
mode:
authorAlexander Krotov <ilabdsf@gmail.com>2017-11-01 13:08:15 +0300
committerAlexander Krotov <ilabdsf@gmail.com>2017-11-01 13:08:52 +0300
commit8a5541dca88190e6fdf6ed9ff5c1c5c69c3c9710 (patch)
tree18df4ec58fe62b321eb13712265bc09179c3753e /test/Tests
parentd20544dd4f61945d713d26c1ba0c5005fa616b67 (diff)
downloadpandoc-8a5541dca88190e6fdf6ed9ff5c1c5c69c3c9710.tar.gz
FB2 writer: remove <annotation> from <body>
<annotation> is not allowed inside <body> according to FictionBook2 XML schema. Besides that, the same information is already placed inside <description>. Related bug: #2424
Diffstat (limited to 'test/Tests')
-rw-r--r--test/Tests/Writers/FB2.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/Tests/Writers/FB2.hs b/test/Tests/Writers/FB2.hs
index 77ab4a82c..f0b96fa09 100644
--- a/test/Tests/Writers/FB2.hs
+++ b/test/Tests/Writers/FB2.hs
@@ -9,7 +9,7 @@ import Text.Pandoc.Builder
fb2 :: String -> String
fb2 x = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" ++
- "<FictionBook xmlns=\"http://www.gribuser.ru/xml/fictionbook/2.0\" xmlns:l=\"http://www.w3.org/1999/xlink\"><description><title-info /><document-info><program-used>pandoc</program-used></document-info></description><body><title><p /></title><annotation><p></p></annotation><section>" ++ x ++ "</section></body></FictionBook>"
+ "<FictionBook xmlns=\"http://www.gribuser.ru/xml/fictionbook/2.0\" xmlns:l=\"http://www.w3.org/1999/xlink\"><description><title-info /><document-info><program-used>pandoc</program-used></document-info></description><body><title><p /></title><section>" ++ x ++ "</section></body></FictionBook>"
infix 4 =:
(=:) :: (ToString a, ToPandoc a)