diff options
author | John MacFarlane <jgm@berkeley.edu> | 2021-04-25 12:21:00 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2021-04-25 12:22:04 -0700 |
commit | 3a98f7a0c767c3b13c7b358ca75d2bddab7cd4d2 (patch) | |
tree | 38da0f9c96e55eaa7e65f23bec151fe69a8d59c5 /src | |
parent | c56d080a253c1364ca55ae97b8d43ed638acf723 (diff) | |
download | pandoc-3a98f7a0c767c3b13c7b358ca75d2bddab7cd4d2.tar.gz |
Minor code reformatting.
Also taking this opportunity to note, for the record, that
the commit for #7241 should be marked [API change].
It changes the type of `languagesByExtension` in Highlighting,
adding a parameter for a `SyntaxMap`.
Diffstat (limited to 'src')
-rw-r--r-- | src/Text/Pandoc/Readers/LaTeX.hs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Readers/LaTeX.hs b/src/Text/Pandoc/Readers/LaTeX.hs index 19c257a48..9ad168293 100644 --- a/src/Text/Pandoc/Readers/LaTeX.hs +++ b/src/Text/Pandoc/Readers/LaTeX.hs @@ -1171,7 +1171,8 @@ inputListing = do let (ident,classes,kvs) = parseListingsOptions options let classes' = (case listingsLanguage options of - Nothing -> (take 1 (languagesByExtension defaultSyntaxMap (T.pack $ takeExtension $ T.unpack f)) <>) + Nothing -> (take 1 (languagesByExtension defaultSyntaxMap + (T.pack $ takeExtension $ T.unpack f)) <>) Just _ -> id) classes let firstline = fromMaybe 1 $ lookup "firstline" options >>= safeRead let lastline = fromMaybe (length codeLines) $ |