DSL: Show multi-word unknown tags

This commit is contained in:
Abs62 2020-10-09 20:49:35 +03:00
parent 8e13789e8f
commit 69e37a3d90

5
dsl.cc
View file

@ -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;