git.iko.soy/typeable/pandoc
on master help sign in
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`.

commit3a98f7a0c767c3b13c7b358ca75d2bddab7cd4d2 authorJohn MacFarlane <jgm@berkeley.edu> dateSun 25 Apr 2021, 12:21 (5 years ago) parentc56d080
1 file changed+2−1
src/Text/Pandoc/Readers/LaTeX.hs+2−1
src/Text/Pandoc/Readers/LaTeX.hs+2−1
@@ -1171,7 +1171,8 @@ inputListing = do
11711171 let (ident,classes,kvs) = parseListingsOptions options
11721172 let classes' =
11731173 (case listingsLanguage options of
1174− Nothing -> (take 1 (languagesByExtension defaultSyntaxMap (T.pack $ takeExtension $ T.unpack f)) <>)
1174+ Nothing -> (take 1 (languagesByExtension defaultSyntaxMap
1175+ (T.pack $ takeExtension $ T.unpack f)) <>)
11751176 Just _ -> id) classes
11761177 let firstline = fromMaybe 1 $ lookup "firstline" options >>= safeRead
11771178 let lastline = fromMaybe (length codeLines) $