Skip to content

Commit

Permalink
T.P.Logging: Change NoTitleElement from WARNING to INFO.
Browse files Browse the repository at this point in the history
Users commonly complain about the warning when producing HTML
documents without an explicit title. It seems that an info message
is more appropriate, since pandoc's default here (using the input's
base name) ensures compliance with the standard and many users
are happy with that default.  Those who want to make sure the
message is seen can use `--verbose`.

Closes #10671.
  • Loading branch information
jgm committed Mar 7, 2025
1 parent 45fdd1d commit 5a360f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Text/Pandoc/Logging.hs
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ messageVerbosity msg =
LoadedResource{} -> INFO
ScriptingInfo{} -> INFO
ScriptingWarning{} -> WARNING
NoTitleElement{} -> WARNING
NoTitleElement{} -> INFO
NoLangSpecified -> INFO
InvalidLang{} -> WARNING
CouldNotHighlight{} -> WARNING
Expand Down

1 comment on commit 5a360f1

@chrispy-snps
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @jgm! (For this and for much more.)

Please sign in to comment.