--- a/mod_latex/mod_latex.lua Wed Jun 11 20:38:07 2014 +0200
+++ b/mod_latex/mod_latex.lua Wed Jun 11 20:38:41 2014 +0200
@@ -5,12 +5,12 @@
local xmlns_xhtml = "http://www.w3.org/1999/xhtml";
local function replace_latex(data)
- module:log("debug", "Replacing latex...");
local origin, stanza = data.origin, data.stanza;
local body = stanza:get_child_text("body");
if not body or not body:match("%$%$") then
return;
end
+ module:log("debug", "Replacing latex...");
local html = st.stanza("html", { xmlns = xmlns_xhtmlim })
:tag("body", { xmlns = xmlns_xhtml });