mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-23 20:14:05 +00:00
fix: slob description html display
Some checks failed
SonarCloud / Build and analyze (push) Has been cancelled
Some checks failed
SonarCloud / Build and analyze (push) Has been cancelled
This commit is contained in:
parent
b68ea3f916
commit
5cdac6be4d
|
@ -726,14 +726,8 @@ QString const & SlobDictionary::getDescription()
|
|||
if ( !dictionaryDescription.isEmpty() )
|
||||
return dictionaryDescription;
|
||||
|
||||
QMap< QString, QString > const & tags = sf.getTags();
|
||||
|
||||
QMap< QString, QString >::const_iterator it;
|
||||
for ( it = tags.begin(); it != tags.end(); ++it ) {
|
||||
if ( it != tags.begin() )
|
||||
dictionaryDescription += "\n\n";
|
||||
|
||||
dictionaryDescription += it.key() + ": " + it.value();
|
||||
for ( auto [ key, value ] : sf.getTags().asKeyValueRange() ) {
|
||||
dictionaryDescription += "<b>" % key % "</b>" % ": " % value % "<br>";
|
||||
}
|
||||
|
||||
return dictionaryDescription;
|
||||
|
|
Loading…
Reference in a new issue