Software /
code /
prosody
Changeset
9619:7172077c0a53 0.11
mod_scansion_record: Split stanzas into multiple lines
Not perfect but should improve readability somewhat
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 12 Nov 2018 17:15:41 +0100 |
parents | 9618:d6e6e1fb7ef0 |
children | 9620:ddcb28c8f64b |
files | plugins/mod_scansion_record.lua |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_scansion_record.lua Mon Nov 12 16:32:43 2018 +0100 +++ b/plugins/mod_scansion_record.lua Mon Nov 12 17:15:41 2018 +0100 @@ -37,7 +37,9 @@ end local function record_stanza(stanza, session, verb) - record(session.scansion_id.." "..verb..":\n\t"..tostring(stanza).."\n\n"); + local flattened = tostring(stanza):gsub("><", ">\n\t<"); + -- TODO Proper prettyprinting with indentation + record(session.scansion_id.." "..verb..":\n\t"..flattened.."\n\n"); end local function record_stanza_in(stanza, session)