diff options
author | Albert Krewinkel <albert@zeitkraut.de> | 2020-10-04 17:03:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-04 08:03:42 -0700 |
commit | 01a6b071fa99358a9c4fca68612e9718ef0fca5f (patch) | |
tree | 95d6f38e993dcd8d968a7a46fa085c79dab368b8 /src/Text/Pandoc/App | |
parent | 18c11f85d76d92a9012a76bbc5c31a71d953b564 (diff) | |
download | pandoc-01a6b071fa99358a9c4fca68612e9718ef0fca5f.tar.gz |
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*.
Diffstat (limited to 'src/Text/Pandoc/App')
-rw-r--r-- | src/Text/Pandoc/App/CommandLineOptions.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/App/CommandLineOptions.hs b/src/Text/Pandoc/App/CommandLineOptions.hs index 36b024ba7..cccfa764b 100644 --- a/src/Text/Pandoc/App/CommandLineOptions.hs +++ b/src/Text/Pandoc/App/CommandLineOptions.hs @@ -840,7 +840,7 @@ options = , sShortname s `notElem` [T.pack "Alert", T.pack "Alert_indent"] ] - mapM_ (UTF8.hPutStrLn stdout) langs + mapM_ (UTF8.hPutStrLn stdout) (sort langs) exitSuccess )) "" |