git.iko.soy/typeable/pandoc
on master help sign in
Logging: remove single quotes around paths in messages.

We weren't doing it consistently and it seems unnecessary.

commit8d5014fdfc57b80be54a3d23358e92c3b45a7e7d authorJohn MacFarlane <jgm@berkeley.edu> dateTue 25 May 2021, 10:36 (5 years ago) parent54ab7a0
3 files changed+8−8
src/Text/Pandoc/Logging.hs+6−6 test/command/7099.md+1−1 test/command/svg.md+1−1
src/Text/Pandoc/Logging.hs+6−6
@@ -282,7 +282,7 @@ showLogMessage msg =
282282 ParsingUnescaped s pos ->
283283 "Parsing unescaped '" <> s <> "' at " <> showPos pos
284284 CouldNotLoadIncludeFile fp pos ->
285− "Could not load include file '" <> fp <> "' at " <> showPos pos
285+ "Could not load include file " <> fp <> " at " <> showPos pos
286286 MacroAlreadyDefined name pos ->
287287 "Macro '" <> name <> "' already defined, ignoring at " <> showPos pos
288288 InlineNotRendered il ->
@@ -294,18 +294,18 @@ showLogMessage msg =
294294 IgnoredIOError s ->
295295 "IO Error (ignored): " <> s
296296 CouldNotFetchResource fp s ->
297− "Could not fetch resource '" <> fp <> "'" <>
297+ "Could not fetch resource " <> fp <>
298298 if Text.null s then "" else ": " <> s
299299 CouldNotDetermineImageSize fp s ->
300− "Could not determine image size for '" <> fp <> "'" <>
300+ "Could not determine image size for " <> fp <>
301301 if Text.null s then "" else ": " <> s
302302 CouldNotConvertImage fp s ->
303− "Could not convert image '" <> fp <> "'" <>
303+ "Could not convert image " <> fp <>
304304 if Text.null s then "" else ": " <> s
305305 CouldNotDetermineMimeType fp ->
306− "Could not determine mime type for '" <> fp <> "'"
306+ "Could not determine mime type for " <> fp
307307 CouldNotConvertTeXMath s m ->
308− "Could not convert TeX math '" <> s <> "', rendering as TeX" <>
308+ "Could not convert TeX math " <> s <> ", rendering as TeX" <>
309309 if Text.null m then "" else ":\n" <> m
310310 CouldNotParseCSS m ->
311311 "Could not parse CSS" <> if Text.null m then "" else ":\n" <> m
test/command/7099.md+1−1
@@ -11,7 +11,7 @@
1111<iframe src="h:invalid@url"></iframe>
1212^D
1313[INFO] Fetching h:invalid@url...
14−[WARNING] Could not fetch resource 'h:invalid@url': Could not fetch h:invalid@url
14+[WARNING] Could not fetch resource h:invalid@url: Could not fetch h:invalid@url
1515 InvalidUrlException "h:invalid@url" "Invalid scheme"
1616[INFO] Skipped '<iframe src="h:invalid@url"></iframe>' at input line 1 column 29
1717[]
test/command/svg.md+1−1
@@ -2,7 +2,7 @@
22% pandoc -f latex -t icml
33\includegraphics{command/corrupt.svg}
44^D
5−[WARNING] Could not determine image size for 'command/corrupt.svg': could not determine image type
5+[WARNING] Could not determine image size for command/corrupt.svg: could not determine image type
66<ParagraphStyleRange AppliedParagraphStyle="ParagraphStyle/Paragraph">
77 <CharacterStyleRange AppliedCharacterStyle="$ID/NormalCharacterStyle">
88 <Rectangle Self="uec" StrokeWeight="0" ItemTransform="1 0 0 1 150 -100">