diff --git a/code/nel/src/gui/group_html.cpp b/code/nel/src/gui/group_html.cpp
index 00ebba9d3..d4422174e 100644
--- a/code/nel/src/gui/group_html.cpp
+++ b/code/nel/src/gui/group_html.cpp
@@ -948,7 +948,7 @@ namespace NLGUI
string fullstyle = style[1];
for (uint j=2; j < style.size(); j++)
fullstyle += ":"+style[j];
- styles[trim(style[0])] = trim(fullstyle);
+ styles[trim(style[0])] = trimSeparators(fullstyle);
}
}