From kopete-devel Sun Sep 28 19:55:57 2008 From: "Roman Jarosz" Date: Sun, 28 Sep 2008 19:55:57 +0000 To: kopete-devel Subject: Re: [kopete-devel] [RFC PATCH] (4.1.1) kopetemessage.cpp: Message-Id: X-MARC-Message: https://marc.info/?l=kopete-devel&m=122263180026296 On Sun, 28 Sep 2008 15:05:57 +0200, Matěj Laitl wrote: > Hello again, > last today's patch adds one more regexp pass into escapedBody() - without > that, superfluous

and

is returned around escaped > body, > causing unneeded newlines in history dialog. It shouldn't add any side > effects > in normal chat window. > > Note: I was unable to achieve this by just adding additional fields into > original regexp, maybe because we need to match start of the document, > which > changes. (also, it didn't work when placed before newline filtering) > Someone > more knowledgeable than me may know slightly more correct solution. > > Regards, > Matěj Laitl We already tried that and it sometimes removes new lines and this function is also used in protocols so we can't do that. I've already created similar code which removes the P tags and replaces it with BR tags. The function also changes some tags for AIM protocols but that should be easy to remove. The code is in kopete/protocols/oscar/aimcontactbase.cpp in function AIMContactBase::slotSendMsg. Regards, Roman _______________________________________________ kopete-devel mailing list kopete-devel@kde.org https://mail.kde.org/mailman/listinfo/kopete-devel