We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82eae91 commit 564a109Copy full SHA for 564a109
src/resources/filters/layout/jats.lua
@@ -39,11 +39,11 @@ function jatsDivFigure(divEl)
39
return figure
40
end
41
42
-function jatsPosition(el, env)
+function jatsPosition(el)
43
local figPos = attribute(el, kFigPos, nil)
44
- if figPos and figPos ~= 'h' and figPos ~= 'H' then
45
- return "float"
46
- else
+ if figPos and figPos == 'h' and figPos == 'H' then
47
return "anchor"
+ else
+ return "float"
48
49
0 commit comments