mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-24 04:24:09 +00:00
DSL: Show multi-word unknown tags
This commit is contained in:
parent
8e13789e8f
commit
69e37a3d90
5
dsl.cc
5
dsl.cc
|
@ -1183,7 +1183,10 @@ string DslDictionary::nodeToHtml( ArticleDom::Node const & node )
|
||||||
gd::toQString( node.tagName ).toUtf8().data(), gd::toQString( node.tagAttrs ).toUtf8().data(),
|
gd::toQString( node.tagName ).toUtf8().data(), gd::toQString( node.tagAttrs ).toUtf8().data(),
|
||||||
getName().c_str(), gd::toQString( currentHeadword ).toUtf8().data() );
|
getName().c_str(), gd::toQString( currentHeadword ).toUtf8().data() );
|
||||||
|
|
||||||
result += "<span class=\"dsl_unknown\">[" + string( gd::toQString( node.tagName ).toUtf8().data() ) + "]" + processNodeChildren( node ) + "</span>";
|
result += "<span class=\"dsl_unknown\">[" + string( gd::toQString( node.tagName ).toUtf8().data() );
|
||||||
|
if( !node.tagAttrs.empty() )
|
||||||
|
result += " " + string( gd::toQString( node.tagAttrs ).toUtf8().data() );
|
||||||
|
result += "]" + processNodeChildren( node ) + "</span>";
|
||||||
}
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
|
|
Loading…
Reference in a new issue