From f8879ee0a1f00bcf1ead9dce0576c381cbcae778 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Mon, 8 Oct 2018 21:33:25 -0700 Subject: Add helpful suggestion to missing title warning. Tell users what to add to the command line to avoid the warning. Closes #4909. --- src/Text/Pandoc/Logging.hs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/Text/Pandoc/Logging.hs') diff --git a/src/Text/Pandoc/Logging.hs b/src/Text/Pandoc/Logging.hs index 4b025821c..675396067 100644 --- a/src/Text/Pandoc/Logging.hs +++ b/src/Text/Pandoc/Logging.hs @@ -292,7 +292,8 @@ showLogMessage msg = "Extracting " ++ fp ++ "..." NoTitleElement fallback -> "This document format requires a nonempty element.\n" ++ - "Please specify either 'title' or 'pagetitle' in the metadata.\n" ++ + "Please specify either 'title' or 'pagetitle' in the metadata,\n" ++ + "e.g. by using --metadata pagetitle=\"...\" on the command line.\n" ++ "Falling back to '" ++ fallback ++ "'" NoLangSpecified -> "No value for 'lang' was specified in the metadata.\n" ++ -- cgit v1.2.3