From a58622afba64661df051ee6454cb62643936356f Mon Sep 17 00:00:00 2001 From: deva Date: Tue, 13 Jan 2009 10:00:37 +0000 Subject: Don't send empty name attribute on tags without names. --- server/src/widgetgenerator.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/widgetgenerator.cc b/server/src/widgetgenerator.cc index f9feb19..58f2992 100644 --- a/server/src/widgetgenerator.cc +++ b/server/src/widgetgenerator.cc @@ -115,7 +115,7 @@ static std::string send_macro_widget(Macro ¯o, while(p != widget.attributes.end()) { if(p->first != "tagname" && p->first != "map") { - result += " " + p->first + "=\"" + p->second + "\""; + if( ! (p->first == "name" && p->second == "") ) result += " " + p->first + "=\"" + p->second + "\""; } p++; } -- cgit v1.2.3