diff options
author | Albert Krewinkel <albert@zeitkraut.de> | 2018-11-03 07:33:04 +0100 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2018-11-03 10:07:47 -0700 |
commit | 418bd42df85b93016e50ba48042804e8f51341b5 (patch) | |
tree | e9323b1896ae332f1c9d824955aff6f630beefd7 /src/Text/Pandoc/App/CommandLineOptions.hs | |
parent | fd3c8cd8c792e6dfe3b19c10cc65152034dd4f30 (diff) | |
download | pandoc-418bd42df85b93016e50ba48042804e8f51341b5.tar.gz |
App: extract output settings into module
Diffstat (limited to 'src/Text/Pandoc/App/CommandLineOptions.hs')
-rw-r--r-- | src/Text/Pandoc/App/CommandLineOptions.hs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/Text/Pandoc/App/CommandLineOptions.hs b/src/Text/Pandoc/App/CommandLineOptions.hs index d97b43b2f..9cbef3ee6 100644 --- a/src/Text/Pandoc/App/CommandLineOptions.hs +++ b/src/Text/Pandoc/App/CommandLineOptions.hs @@ -268,9 +268,8 @@ defaultOpts = Opt , optStripComments = False } -lookupHighlightStyle :: Maybe String -> IO (Maybe Style) -lookupHighlightStyle Nothing = return Nothing -lookupHighlightStyle (Just s) +lookupHighlightStyle :: String -> IO (Maybe Style) +lookupHighlightStyle s | takeExtension s == ".theme" = -- attempt to load KDE theme do contents <- B.readFile s case parseTheme contents of |