aboutsummaryrefslogtreecommitdiff
path: root/src/Text
diff options
context:
space:
mode:
authorJesse Rosenthal <jrosenthal@jhu.edu>2014-08-12 23:33:03 -0400
committerJesse Rosenthal <jrosenthal@jhu.edu>2014-08-12 23:33:03 -0400
commit85579052b5bb7196b62e9d9cd70e164498e49f6c (patch)
treef224c23f2a5fb27eb7020eb699921b8d9fc84373 /src/Text
parent194ed8885236d8446b34f44ecf16d4fa9e5c5cbe (diff)
downloadpandoc-85579052b5bb7196b62e9d9cd70e164498e49f6c.tar.gz
Docx reader: Check for null-id'd anchors too.
Otherwise they get left dangling in the document.
Diffstat (limited to 'src/Text')
-rw-r--r--src/Text/Pandoc/Readers/Docx.hs1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Readers/Docx.hs b/src/Text/Pandoc/Readers/Docx.hs
index 2c436f76f..346d54bbe 100644
--- a/src/Text/Pandoc/Readers/Docx.hs
+++ b/src/Text/Pandoc/Readers/Docx.hs
@@ -403,7 +403,6 @@ parPartToInlines (PlainOMath exps) = do
isAnchorSpan :: Inline -> Bool
isAnchorSpan (Span (ident, classes, kvs) ils) =
- (not . null) ident &&
classes == ["anchor"] &&
null kvs &&
null ils