Skip to content

Commit 4856b1f

Browse files
authored
Use quarto.doc API in springer test fixture filter (#15375)
The springer fixture filter called quarto.render.pdfEngine() and quarto.render.citeMethod(), so any springer-pdf render of the fixture failed with "attempt to index a nil value (field 'render')". The quarto.render table existed only briefly before 1.0 (abb1bac); 3ace171 renamed both functions to quarto.doc.pdfEngine() and quarto.doc.citeMethod(). The fixture was copied from quarto-journals/springer before upstream made the same rename in quarto-journals/springer@aa10358, and no test renders it to pdf, so the stale calls went unnoticed.
1 parent d4aac39 commit 4856b1f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • tests/docs/extensions/project/_extensions/quarto-journals/springer

‎tests/docs/extensions/project/_extensions/quarto-journals/springer/filter.lua‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ return {
3737

3838
-- When producing a pdf using pdflatex, we need to be sure
3939
-- this is included in the classoption for the document
40-
if quarto.render.pdfEngine() == kPdfLatex then
40+
if quarto.doc.pdfEngine() == kPdfLatex then
4141
local hasOption = false
4242
if meta[kClassOpt] ~= nil then
4343
hasOption = hasClassOption(meta, kPdfLatex)
@@ -51,7 +51,7 @@ return {
5151

5252
-- When producing PDFs and using natbib, we need to move the proper style file into
5353
-- place for generating the bibliography and processing cites
54-
if quarto.render.citeMethod() == 'natbib' then
54+
if quarto.doc.citeMethod() == 'natbib' then
5555
local stylename = nil
5656

5757
-- See if a class option is already set for this

0 commit comments

Comments
 (0)