From cf11339c1d3add1c4d758d0107d714b5954584fe Mon Sep 17 00:00:00 2001 From: Albert Krewinkel Date: Fri, 25 Jul 2025 08:17:20 +0200 Subject: PDF: Improve error readability when pdf-engine is not supported. Each supported engine is now printed on a line of its own. --- src/Text/Pandoc/App/CommandLineOptions.hs | 4 ++-- 1 file 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" -- cgit v1.2.3