Software /
code /
prosody
Changeset
10718:d229e4d31598
mod_scansion_record: Indent stanzas in recordings
Improves readability, easier to see structure.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 12 Apr 2020 17:30:16 +0200 |
parents | 10717:05e4645fc9b3 |
children | 10719:977c9883f625 |
files | plugins/mod_scansion_record.lua |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_scansion_record.lua Sun Apr 12 17:03:05 2020 +0200 +++ b/plugins/mod_scansion_record.lua Sun Apr 12 17:30:16 2020 +0200 @@ -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