Skip to content

Commit 09c29d7

Browse files
committed
Only apply code transformation annotations are present
1 parent aa932d1 commit 09c29d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/resources/filters/quarto-pre/code-annotation.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ local function resolveCellAnnotes(codeBlockEl, processAnnotation)
176176

177177
-- if we capture annotations, then replace the code source
178178
-- code, stripping annotation comments
179-
if #annotations then
179+
if #annotations > 0 then
180180
local outputText = ""
181181
for i, output in ipairs(outputs) do
182182
outputText = outputText .. output .. '\n'

0 commit comments

Comments
 (0)