aboutsummaryrefslogtreecommitdiff
path: root/Text
diff options
context:
space:
mode:
authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>2008-07-31 06:35:58 +0000
committerfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b>2008-07-31 06:35:58 +0000
commit14fd553fe17c7b5d94996990492e6a54acc48544 (patch)
treeb9ccd9a03fb869ab791aabb6ae0cf7d8e5a57c39 /Text
parent2751608d9bd59d8f23e557ed716205df8c4f503a (diff)
downloadpandoc-14fd553fe17c7b5d94996990492e6a54acc48544.tar.gz
Code cleanup in Text/Pandoc/Highlighting.hs.
git-svn-id: https://pandoc.googlecode.com/svn/trunk@1340 788f1e2b-df1e-0410-8736-df70ead52e1b
Diffstat (limited to 'Text')
-rw-r--r--Text/Pandoc/Highlighting.hs8
1 files changed, 4 insertions, 4 deletions
diff --git a/Text/Pandoc/Highlighting.hs b/Text/Pandoc/Highlighting.hs
index 6fcb9cb8b..f9d69f2c2 100644
--- a/Text/Pandoc/Highlighting.hs
+++ b/Text/Pandoc/Highlighting.hs
@@ -47,10 +47,10 @@ highlightHtml (_, classes, keyvals) rawCode =
Just _ -> [OptNumberLines]
lcLanguages = map (map toLower) languages
in case find (\c -> (map toLower c) `elem` lcLanguages) classes of
- Nothing -> Left "Unknown or unsupported language"
- Just lang -> case highlightAs lang rawCode of
- Left err -> Left err
- Right hl -> Right $ formatAsXHtml fmtOpts lang hl
+ Nothing -> Left "Unknown or unsupported language"
+ Just language -> case highlightAs language rawCode of
+ Left err -> Left err
+ Right hl -> Right $ formatAsXHtml fmtOpts language hl
#else
defaultHighlightingCss :: String