From e0edef78dc6d374eb466cee54b825cbe31ae4a64 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 12 Jun 2022 15:38:01 +0300 Subject: Jabber: minor improvement for OMEMO printing --- protocols/JabberG/src/jabber_omemo.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'protocols/JabberG/src/jabber_omemo.cpp') diff --git a/protocols/JabberG/src/jabber_omemo.cpp b/protocols/JabberG/src/jabber_omemo.cpp index a0836b9639..d2699d37fb 100644 --- a/protocols/JabberG/src/jabber_omemo.cpp +++ b/protocols/JabberG/src/jabber_omemo.cpp @@ -1363,8 +1363,11 @@ complete: if(*p && *(p+1)) p+=2; for (; *p; p++) { buf.AppendChar(toupper(*p)); - if (++i % 8 == 0) + i++; + if (i % 8 == 0) buf.AppendChar(' '); + if (i % 32 == 0) + buf.AppendChar('\n'); } } -- cgit v1.2.3