mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 23:34:06 +00:00
Aard: Minor change in link handling
This commit is contained in:
parent
066fb00b4a
commit
57bf62fab0
2
aard.cc
2
aard.cc
|
@ -460,7 +460,7 @@ void AardDictionary::loadArticle( quint32 address,
|
||||||
encodedLink.push_back( *i );
|
encodedLink.push_back( *i );
|
||||||
prev = false;
|
prev = false;
|
||||||
}
|
}
|
||||||
encodedLink = string( QUrl::toPercentEncoding( QString::fromUtf8( encodedLink.c_str() ) ).data() );
|
encodedLink = string( QUrl( QString::fromUtf8( encodedLink.data(), encodedLink.size() ) ).toEncoded().data() );
|
||||||
articleText = "<a href=\"" + encodedLink + "\">" + link + "</a>";
|
articleText = "<a href=\"" + encodedLink + "\">" + link + "</a>";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue