diff --git a/shared/cplusplus/PrettyPrinter.cpp b/shared/cplusplus/PrettyPrinter.cpp
index 213d21a468ab767b1fbaef6fbe0b7e57c27a419b..7664d5b6d40abf991049006e2a6fe770383ae3ea 100644
--- a/shared/cplusplus/PrettyPrinter.cpp
+++ b/shared/cplusplus/PrettyPrinter.cpp
@@ -1042,7 +1042,7 @@ bool PrettyPrinter::visit(TemplateTypeParameterAST *ast)
         for (DeclarationAST *it = ast->template_parameters; it; it = it->next) {
             accept(it);
             if (it->next)
-                out << ",. ";
+                out << ", ";
         }
         out << ' ';
     }