*! When replacing wiki links' underscores with spaces, don't replace them

in fragment ids (after the # in url).
This commit is contained in:
Konstantin Isakov 2009-04-01 18:59:31 +00:00
parent 594f4dd2d0
commit b2ddf5f2b1

View file

@ -250,7 +250,7 @@ void MediaWikiArticleRequest::downloadFinished()
for( ; ; )
{
QString before = articleString;
articleString.replace( QRegExp( "<a href=\"([^/:\">]*)_" ), "<a href=\"\\1 " );
articleString.replace( QRegExp( "<a href=\"([^/:\">#]*)_" ), "<a href=\"\\1 " );
if ( articleString == before )
break;