[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdepimlibs/kcal
From: Allen Winter <winter () kde ! org>
Date: 2008-10-20 22:51:31
Message-ID: 1224543091.283602.28117.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 874191 by winterz:
in cleanHtml(), remove QRegExp( "<[^>]*>" ) rather then replace with empty.
M +2 -4 incidenceformatter.cpp
--- trunk/KDE/kdepimlibs/kcal/incidenceformatter.cpp #874190:874191
@@ -564,12 +564,11 @@
static QString cleanHtml( const QString &html )
{
- QRegExp rx( "<body[^>]*>(.*)</body>",
- Qt::CaseInsensitive );
+ QRegExp rx( "<body[^>]*>(.*)</body>", Qt::CaseInsensitive );
rx.indexIn( html );
QString body = rx.cap( 1 );
- return Qt::escape( body.replace( QRegExp("<[^>]*>"), "" ).trimmed() );
+ return Qt::escape( body.remove( QRegExp( "<[^>]*>" ) ).trimmed() );
}
static QString eventStartTimeStr( Event *event )
@@ -1501,7 +1500,6 @@
return formatICalInvitationHelper( invitation, mCalendar, helper, true );
}
-
/*******************************************************************
* Helper functions for the Incidence tooltips
*******************************************************************/
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic