aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc
diff options
context:
space:
mode:
authorHubert Plociniczak <hubert.plociniczak@gmail.com>2016-10-18 10:50:37 +0200
committerHubert Plociniczak <hubert.plociniczak@gmail.com>2016-10-18 10:50:37 +0200
commitc74c5fdd97e8bf4c160a42dff72e3a521294bcda (patch)
tree990dbcc48aff95a118948952f47183824e9b695e /src/Text/Pandoc
parentcbeb72d06b4eb3718479eba5257a33a385f642fe (diff)
downloadpandoc-c74c5fdd97e8bf4c160a42dff72e3a521294bcda.tar.gz
Issue 3143: Don't duplicate text for anchors
When creating an anchor element we were adding its representation as well as the original content, leading to text duplication.
Diffstat (limited to 'src/Text/Pandoc')
-rw-r--r--src/Text/Pandoc/Readers/Odt/ContentReader.hs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/Text/Pandoc/Readers/Odt/ContentReader.hs b/src/Text/Pandoc/Readers/Odt/ContentReader.hs
index 8c475eefc..ffd2f61d1 100644
--- a/src/Text/Pandoc/Readers/Odt/ContentReader.hs
+++ b/src/Text/Pandoc/Readers/Odt/ContentReader.hs
@@ -713,9 +713,8 @@ maybeAddAnchorFrom anchorReader =
>>>
proc (inlines, fAnchorElem) -> do
case fAnchorElem of
- Right anchorElem ->
- arr (anchorElem <>) -<< inlines
- Left _ -> returnA -< inlines
+ Right anchorElem -> returnA -< anchorElem
+ Left _ -> returnA -< inlines
where
toAnchorElem :: Anchor -> Inlines
toAnchorElem anchorID = spanWith (anchorID, [], []) mempty