aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlbert Krewinkel <[email protected]>2025-07-25 08:17:20 +0200
committerAlbert Krewinkel <[email protected]>2025-07-25 08:22:25 +0200
commitcf11339c1d3add1c4d758d0107d714b5954584fe (patch)
tree57003add38dbf50e1d0e493990ec5cfaa7d63e54
parent3dfb25bb6cb57769450a4079bb9ea63b1e74c755 (diff)
PDF: Improve error readability when pdf-engine is not supported.
Each supported engine is now printed on a line of its own.
-rw-r--r--src/Text/Pandoc/App/CommandLineOptions.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Text/Pandoc/App/CommandLineOptions.hs b/src/Text/Pandoc/App/CommandLineOptions.hs
index 7f5515ef8..56c855e5f 100644
--- a/src/Text/Pandoc/App/CommandLineOptions.hs
+++ b/src/Text/Pandoc/App/CommandLineOptions.hs
@@ -598,8 +598,8 @@ options =
then return opt { optPdfEngine = Just arg }
else optError $
PandocOptionError $ T.pack $
- "Argument of --pdf-engine must be one of "
- ++ intercalate ", " pdfEngines)
+ "Argument of --pdf-engine must be one of\n"
+ ++ concatMap (\e -> "\t" <> e <> "\n") pdfEngines)
"PROGRAM")
"" -- "Name of program to use in generating PDF"