git.iko.soy/typeable/pandoc
on master help sign in
Add helpful suggestion to missing title warning.

Tell users what to add to the command line to avoid the warning. Closes #4909.

commitf8879ee0a1f00bcf1ead9dce0576c381cbcae778 authorJohn MacFarlane <jgm@berkeley.edu> dateMon 8 Oct 2018, 21:33 (8 years ago) parenta92e435
1 file changed+2−1
src/Text/Pandoc/Logging.hs+2−1
src/Text/Pandoc/Logging.hs+2−1
@@ -292,7 +292,8 @@ showLogMessage msg =
292292 "Extracting " ++ fp ++ "..."
293293 NoTitleElement fallback ->
294294 "This document format requires a nonempty <title> element.\n" ++
295− "Please specify either 'title' or 'pagetitle' in the metadata.\n" ++
295+ "Please specify either 'title' or 'pagetitle' in the metadata,\n" ++
296+ "e.g. by using --metadata pagetitle=\"...\" on the command line.\n" ++
296297 "Falling back to '" ++ fallback ++ "'"
297298 NoLangSpecified ->
298299 "No value for 'lang' was specified in the metadata.\n" ++