diff options
author | Albert Krewinkel <albert@zeitkraut.de> | 2020-11-07 19:38:03 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-07 10:38:03 -0800 |
commit | 527346cc7e2bc874092be2f6793001860e10a719 (patch) | |
tree | 7c26c03a30f00f63c340d98cebdadd2f6408df21 /src/Text/Pandoc/Readers/Docx | |
parent | 0ed3436588951d457eefb11351f72d3560bdc544 (diff) | |
download | pandoc-527346cc7e2bc874092be2f6793001860e10a719.tar.gz |
Lint code in PRs and when committing to master (#6790)
* Remove unused LANGUAGE pragmata
* Apply HLint suggestions
* Configure HLint to ignore some warnings
* Lint code when committing to master
Diffstat (limited to 'src/Text/Pandoc/Readers/Docx')
-rw-r--r-- | src/Text/Pandoc/Readers/Docx/Combine.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Readers/Docx/Combine.hs b/src/Text/Pandoc/Readers/Docx/Combine.hs index 427a73dbe..46112af19 100644 --- a/src/Text/Pandoc/Readers/Docx/Combine.hs +++ b/src/Text/Pandoc/Readers/Docx/Combine.hs @@ -109,7 +109,7 @@ ilModifierAndInnards ils = case viewl $ unMany ils of Underline lst -> Just (Modifier underline, lst) Superscript lst -> Just (Modifier superscript, lst) Subscript lst -> Just (Modifier subscript, lst) - Link attr lst tgt -> Just (Modifier $ linkWith attr (fst tgt) (snd tgt), lst) + Link attr lst tgt -> Just (Modifier $ uncurry (linkWith attr) tgt, lst) Span attr lst -> Just (AttrModifier spanWith attr, lst) _ -> Nothing _ -> Nothing |