aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc/App
diff options
context:
space:
mode:
authorAlbert Krewinkel <albert@zeitkraut.de>2020-10-04 17:03:42 +0200
committerGitHub <noreply@github.com>2020-10-04 08:03:42 -0700
commit01a6b071fa99358a9c4fca68612e9718ef0fca5f (patch)
tree95d6f38e993dcd8d968a7a46fa085c79dab368b8 /src/Text/Pandoc/App
parent18c11f85d76d92a9012a76bbc5c31a71d953b564 (diff)
downloadpandoc-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.hs2
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 ))
""