From 69e37a3d908d355214b6adcfd1f613d6214fd172 Mon Sep 17 00:00:00 2001 From: Abs62 Date: Fri, 9 Oct 2020 20:49:35 +0300 Subject: [PATCH] DSL: Show multi-word unknown tags --- dsl.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dsl.cc b/dsl.cc index 0780b854..0c3bb031 100644 --- a/dsl.cc +++ b/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(), getName().c_str(), gd::toQString( currentHeadword ).toUtf8().data() ); - result += "[" + string( gd::toQString( node.tagName ).toUtf8().data() ) + "]" + processNodeChildren( node ) + ""; + result += "[" + string( gd::toQString( node.tagName ).toUtf8().data() ); + if( !node.tagAttrs.empty() ) + result += " " + string( gd::toQString( node.tagAttrs ).toUtf8().data() ); + result += "]" + processNodeChildren( node ) + ""; } return result;