@@ -31,9 +31,9 @@ function luaxml_sty.add_rule(current, selector, rule)
31
31
end
32
32
-- the +v parameter type in LaTeX replaces newlines with \obeyedline. we need to replace it back to newlines
33
33
rule = rule :gsub (" \\ obeyedline" , " \n " )
34
- luaxml_sty .debug (" ************* haha : " .. selector , rule , current )
34
+ luaxml_sty .debug (" ************* luaxml_sty rule : " .. selector , rule , current )
35
35
local transform = luaxml_sty .transformations [current ]
36
- if not transform then
36
+ if not transform then
37
37
luaxml_sty .error (" Cannot find LuaXML transform object: " .. (current or " " ))
38
38
return nil , " Cannot find LuaXML transform object: " .. (current or " " )
39
39
end
@@ -65,17 +65,16 @@ function luaxml_sty.parse_snippet(current, xml_string)
65
65
else
66
66
dom = domobject .html_parse (xml_string )
67
67
end
68
- transform :add_action (" .ahoj" , " xxx: %s" )
69
68
print (dom :serialize ())
70
69
local result = transform :process_dom (dom )
71
70
luaxml_sty .packages .transform .print_tex (result )
72
71
end
73
72
74
73
function luaxml_sty .parse_file (current , filename )
75
74
local f = io.open (filename , " r" )
76
- if not f then
75
+ if not f then
77
76
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
79
78
end
80
79
local content = f :read (" *a" )
81
80
f :close ()
0 commit comments