diff plugins/mod_scansion_record.lua @ 11120:b2331f3dfeea

Merge 0.11->trunk
author Matthew Wild <mwild1@gmail.com>
date Wed, 30 Sep 2020 09:50:33 +0100
parents d229e4d31598
children 613035d6e5a0
line wrap: on
line diff
--- a/plugins/mod_scansion_record.lua	Thu Oct 01 15:08:58 2020 +0100
+++ b/plugins/mod_scansion_record.lua	Wed Sep 30 09:50:33 2020 +0100
@@ -37,8 +37,7 @@
 end
 
 local function record_stanza(stanza, session, verb)
-	local flattened = tostring(stanza):gsub("><", ">\n\t<");
-	-- TODO Proper prettyprinting with indentation
+	local flattened = tostring(stanza:indent(2, "\t"));
 	record(session.scansion_id.." "..verb..":\n\t"..flattened.."\n\n");
 end