Skip to content

Commit 564a109

Browse files
committed
Jats figures float by default
1 parent 82eae91 commit 564a109

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/resources/filters/layout/jats.lua

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ function jatsDivFigure(divEl)
3939
return figure
4040
end
4141

42-
function jatsPosition(el, env)
42+
function jatsPosition(el)
4343
local figPos = attribute(el, kFigPos, nil)
44-
if figPos and figPos ~= 'h' and figPos ~= 'H' then
45-
return "float"
46-
else
44+
if figPos and figPos == 'h' and figPos == 'H' then
4745
return "anchor"
46+
else
47+
return "float"
4848
end
4949
end

0 commit comments

Comments
 (0)