Sort languages in `--list-highlight-languages` output (#6718)
Languages appear to be sorted by their long name, which leads to
unexpected results: e.g., the long name of *m4* is *GNU m4*, so it is
listed between *gnuassembler* and *go*.
commit01a6b071fa99358a9c4fca68612e9718ef0fca5f
authorAlbert Krewinkel <albert@zeitkraut.de>
dateSun 4 Oct 2020, 17:03 (6 years ago)
parent18c11f8
src/Text/Pandoc/App/CommandLineOptions.hs+1−1
@@ -840,7 +840,7 @@ options =
840840 , sShortname s `notElem`
841841 [T.pack "Alert", T.pack "Alert_indent"]
842842 ]
843− mapM_ (UTF8.hPutStrLn stdout) langs
843+ mapM_ (UTF8.hPutStrLn stdout) (sort langs)
844844 exitSuccess ))
845845 ""
846846