Allow environment variable interpolation in pdf-engine...

in defaults files.  Note that pdf-engine can take an absolute
path, so this is useful.

See #8061.
This commit is contained in:
John MacFarlane 2022-05-11 09:15:26 -07:00
parent 0b2adf9617
commit b0195b7ef4

View file

@ -214,6 +214,7 @@ resolveVarsInOpt
, optCSL = oCSL
, optBibliography = oBibliography
, optCitationAbbreviations = oCitationAbbreviations
, optPdfEngine = oPdfEngine
}
= do
oTemplate' <- mapM resolveVars oTemplate
@ -238,6 +239,7 @@ resolveVarsInOpt
oCSL' <- mapM resolveVars oCSL
oBibliography' <- mapM resolveVars oBibliography
oCitationAbbreviations' <- mapM resolveVars oCitationAbbreviations
oPdfEngine' <- mapM resolveVars oPdfEngine
return opt{ optTemplate = oTemplate'
, optMetadataFiles = oMetadataFiles'
, optOutputFile = oOutputFile'
@ -260,6 +262,7 @@ resolveVarsInOpt
, optCSL = oCSL'
, optBibliography = oBibliography'
, optCitationAbbreviations = oCitationAbbreviations'
, optPdfEngine = oPdfEngine'
}
where