summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--static/source/embindmaker/embindmaker.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/static/source/embindmaker/embindmaker.cxx b/static/source/embindmaker/embindmaker.cxx
index b696a09c6127..b8184a03e0a9 100644
--- a/static/source/embindmaker/embindmaker.cxx
+++ b/static/source/embindmaker/embindmaker.cxx
@@ -128,7 +128,7 @@ getServiceConstructorName(unoidl::SingleInterfaceBasedServiceEntity::Constructor
return constructor.defaultConstructor ? u"create"_ustr : constructor.name;
}
-OUString jsName(OUString const& name) { return name.replace('.', '$'); }
+OUString jsName(OUString const& name) { return name.replace(' ', '_').replace('.', '$'); }
OUString
jsServiceConstructor(OUString const& service,