Skip to content

Commit d81a0ee

Browse files
committed
small formatting fixes
1 parent 8029582 commit d81a0ee

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

luaxml-sty.lua

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ function luaxml_sty.add_rule(current, selector, rule)
3131
end
3232
-- the +v parameter type in LaTeX replaces newlines with \obeyedline. we need to replace it back to newlines
3333
rule = rule:gsub("\\obeyedline", "\n")
34-
luaxml_sty.debug("************* haha: " .. selector, rule, current)
34+
luaxml_sty.debug("************* luaxml_sty rule: " .. selector, rule, current)
3535
local transform = luaxml_sty.transformations[current]
36-
if not transform then
36+
if not transform then
3737
luaxml_sty.error("Cannot find LuaXML transform object: " .. (current or ""))
3838
return nil, "Cannot find LuaXML transform object: " .. (current or "")
3939
end
@@ -65,17 +65,16 @@ function luaxml_sty.parse_snippet(current, xml_string)
6565
else
6666
dom = domobject.html_parse(xml_string)
6767
end
68-
transform:add_action(".ahoj", "xxx: %s")
6968
print(dom:serialize())
7069
local result = transform:process_dom(dom)
7170
luaxml_sty.packages.transform.print_tex(result)
7271
end
7372

7473
function luaxml_sty.parse_file(current, filename)
7574
local f = io.open(filename, "r")
76-
if not f then
75+
if not f then
7776
luaxml_sty.packages.transform.print_tex("\\textbf{LuaXML error}: cannot find file " .. filename)
78-
return nil, "Cannot find file " .. filename
77+
return nil, "Cannot find file " .. filename
7978
end
8079
local content = f:read("*a")
8180
f:close()

0 commit comments

Comments
 (0)