Skip to content

Commit

Permalink
only perform #10328 fix when subfloats exist
Browse files Browse the repository at this point in the history
  • Loading branch information
cscheid committed Jul 19, 2024
1 parent d0e8aa5 commit 5a02762
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/resources/filters/quarto-pre/parsefiguredivs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ function parse_floatreftargets()
subcaps = quarto.json.decode(subcaps)
end

if nsubcells == #subcaps then
if nsubcells == #subcaps and nsubcells > 0 then
content = handle_subcells_as_subfloats {
div = div,
content = content,
Expand Down

0 comments on commit 5a02762

Please sign in to comment.