Skip to content

Commit

Permalink
Allow environment variable interpolation in pdf-engine...
Browse files Browse the repository at this point in the history
in defaults files.  Note that pdf-engine can take an absolute
path, so this is useful.

See #8061.
  • Loading branch information
jgm committed May 11, 2022
1 parent 0b2adf9 commit b0195b7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Text/Pandoc/App/Opt.hs
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ resolveVarsInOpt
, optCSL = oCSL
, optBibliography = oBibliography
, optCitationAbbreviations = oCitationAbbreviations
, optPdfEngine = oPdfEngine
}
= do
oTemplate' <- mapM resolveVars oTemplate
Expand All @@ -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'
Expand All @@ -260,6 +262,7 @@ resolveVarsInOpt
, optCSL = oCSL'
, optBibliography = oBibliography'
, optCitationAbbreviations = oCitationAbbreviations'
, optPdfEngine = oPdfEngine'
}

where
Expand Down

0 comments on commit b0195b7

Please sign in to comment.