diff --git a/breathe/directives.py b/breathe/directives.py index c4432c239..a57e075ec 100644 --- a/breathe/directives.py +++ b/breathe/directives.py @@ -62,6 +62,8 @@ def run(self) -> List[Node]: (namespace, function_name) = namespaced_function.rsplit("::", 1) except ValueError: (namespace, function_name) = "", namespaced_function + namespace = namespace.strip() + function_name = function_name.strip() try: project_info = self.project_info_factory.create_project_info(self.options)