Allow environment variable interpolation in highlight-style in defaults files (#8073)

This commit is contained in:
Jaehwang Jung 2022-05-15 07:17:41 +09:00 committed by GitHub
parent b888a8c77e
commit 9c85933b38
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -215,6 +215,7 @@ resolveVarsInOpt
, optBibliography = oBibliography
, optCitationAbbreviations = oCitationAbbreviations
, optPdfEngine = oPdfEngine
, optHighlightStyle = oHighlightStyle
}
= do
oTemplate' <- mapM resolveVars oTemplate
@ -240,6 +241,7 @@ resolveVarsInOpt
oBibliography' <- mapM resolveVars oBibliography
oCitationAbbreviations' <- mapM resolveVars oCitationAbbreviations
oPdfEngine' <- mapM resolveVars oPdfEngine
oHighlightStyle' <- mapM (fmap T.pack . resolveVars . T.unpack) oHighlightStyle
return opt{ optTemplate = oTemplate'
, optMetadataFiles = oMetadataFiles'
, optOutputFile = oOutputFile'
@ -263,6 +265,7 @@ resolveVarsInOpt
, optBibliography = oBibliography'
, optCitationAbbreviations = oCitationAbbreviations'
, optPdfEngine = oPdfEngine'
, optHighlightStyle = oHighlightStyle'
}
where