File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,11 @@ local List = require 'pandoc.List'
10
10
local path = require ' pandoc.path'
11
11
local system = require ' pandoc.system'
12
12
13
+ local warn = pcall (require , ' pandoc.log' )
14
+ and (require ' pandoc.log' ).warn
15
+ or warn
16
+ or function (msg ) io.stderr :write (msg .. ' \n ' ) end
17
+
13
18
--- Get include auto mode
14
19
local include_auto = false
15
20
function get_vars (meta )
@@ -85,7 +90,7 @@ function transclude (cb)
85
90
if line :sub (1 ,2 ) ~= ' //' then
86
91
local fh = io.open (line )
87
92
if not fh then
88
- io.stderr : write (" Cannot open file " .. line .. " | Skipping includes\n " )
93
+ warn (" Cannot open file " .. line .. " | Skipping includes" )
89
94
else
90
95
-- read file as the given format with global reader options
91
96
local contents = pandoc .read (
You can’t perform that action at this time.
0 commit comments