Skip to content

Commit

Permalink
Lua - don't use iife in Lua, or else you'll get a lovecraftian error …
Browse files Browse the repository at this point in the history
…message
  • Loading branch information
cscheid committed May 16, 2024
1 parent c19df5b commit 95d87f7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/resources/filters/customnodes/callout.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
local constants = require("modules/constants")
local class_predicates = require("modules/classpredicates")

(function()
local function _main()
local callouts = require("modules/callouts")

local calloutidx = 1
Expand Down Expand Up @@ -424,7 +424,8 @@ local class_predicates = require("modules/classpredicates")
end, function(callout)
return calloutDocx(callout)
end)
end)()
end
_main()

function docx_callout_and_table_fixup()
if not _quarto.format.isDocxOutput() then
Expand Down
2 changes: 2 additions & 0 deletions src/resources/filters/modules/callouts.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
-- callouts.lua
-- Copyright (C) 2024 Posit Software, PBC

local constants = require("modules/constants")

local function callout_title_prefix(callout, withDelimiter)
local category = crossref.categories.by_ref_type[refType(callout.attr.identifier)]
if category == nil then
Expand Down

0 comments on commit 95d87f7

Please sign in to comment.