• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

sile-typesetter / sile / 11899102988

18 Nov 2024 06:50PM UTC coverage: 61.332% (-10.4%) from 71.755%
11899102988

push

github

alerque
style(tooling): Restyle Lua code with stylua

0 of 1 new or added line in 1 file covered. (0.0%)

1869 existing lines in 60 files now uncovered.

11228 of 18307 relevant lines covered (61.33%)

4965.14 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/packages/ifattop/init.lua
UNCOV
1
local base = require("packages.base")
×
2

UNCOV
3
local package = pl.class(base)
×
UNCOV
4
package._name = "ifattop"
×
5

UNCOV
6
function package:registerCommands ()
×
UNCOV
7
   self:registerCommand("ifattop", function (_, content)
×
UNCOV
8
      SILE.typesetter:leaveHmode()
×
UNCOV
9
      if #SILE.typesetter.state.outputQueue == 0 then
×
UNCOV
10
         SILE.process(content)
×
11
      end
12
   end)
13

UNCOV
14
   self:registerCommand("ifnotattop", function (_, content)
×
UNCOV
15
      SILE.typesetter:leaveHmode()
×
UNCOV
16
      if #SILE.typesetter.state.outputQueue ~= 0 then
×
UNCOV
17
         SILE.process(content)
×
18
      end
19
   end)
20
end
21

22
package.documentation = [[
23
\begin{document}
24
This package provides two commands: \autodoc:command{\ifattop} and \autodoc:command{\ifnotattop}.
25
The argument of the command is processed only if the typesetter is at the top of a frame or is not at the top of a frame respectively.
26
\end{document}
UNCOV
27
]]
×
28

UNCOV
29
return package
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc