git.iko.soy/typeable/pandoc
on master help sign in
Logging: issue INFO, not WARNING, if LaTeX .sty file can't be read.

Normally this is not a situation requiring a fix from the user, so a warning is inappropriate.

commit8e8d7802eef373b458653fc87857672c2c376b05 authorJohn MacFarlane <jgm@berkeley.edu> dateSat 4 Nov 2017, 17:07 (9 years ago) parent5087b05
2 files changed+8−1
changelog+4 src/Text/Pandoc/Logging.hs+4−1
changelog+4
@@ -46,6 +46,10 @@ pandoc (2.0.1.1)
4646
4747 * Improve `pandoc-template-mode.el` (Vaclav Haisman).
4848
49+ * Issue INFO, not WARNING, when a .sty file cannot be
50+ read in LaTeX reader. It is normally not an issue requiring
51+ a fix from the user if .sty files are not found.
52+
4953 * INSTALL.md: MacOS instructions needed xar -f (adam234).
5054
5155 * MANUAL.txt:
src/Text/Pandoc/Logging.hs+4−1
@@ -45,6 +45,7 @@ import Data.Aeson.Encode.Pretty (Config (..), defConfig, encodePretty',
4545 keyOrder)
4646import qualified Data.ByteString.Lazy as BL
4747import Data.Data (Data, toConstr)
48+import Data.List (isSuffixOf)
4849import qualified Data.Text as Text
4950import Data.Typeable (Typeable)
5051import GHC.Generics (Generic)
@@ -315,7 +316,9 @@ messageVerbosity msg =
315316 ReferenceNotFound{} -> WARNING
316317 CircularReference{} -> WARNING
317318 UndefinedToggle{} -> WARNING
318− CouldNotLoadIncludeFile{} -> WARNING
319+ CouldNotLoadIncludeFile f _
320+ | ".sty" `isSuffixOf` f -> INFO
321+ | otherwise -> WARNING
319322 MacroAlreadyDefined{} -> WARNING
320323 ParsingUnescaped{} -> INFO
321324 InlineNotRendered{} -> INFO