diff options
author | deva <deva> | 2009-01-13 10:00:37 +0000 |
---|---|---|
committer | deva <deva> | 2009-01-13 10:00:37 +0000 |
commit | a58622afba64661df051ee6454cb62643936356f (patch) | |
tree | 405bd8ea3c1da981f9cc7345da3251fa391d5fbe | |
parent | 9fcf15a06b9ec422dbad53508e8ce71d2d4145c3 (diff) |
Don't send empty name attribute on tags without names.
-rw-r--r-- | server/src/widgetgenerator.cc | 2 |
1 files changed, 1 insertions, 1 deletions
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++; } |