diff --git a/code/nel/src/gui/group_html.cpp b/code/nel/src/gui/group_html.cpp
index 68234c3d9..038ad352a 100644
--- a/code/nel/src/gui/group_html.cpp
+++ b/code/nel/src/gui/group_html.cpp
@@ -978,7 +978,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);
}
}