diff --git a/KSHObjcUML/KSHObjcUML.m b/KSHObjcUML/KSHObjcUML.m index e7ecfd8..3c36e87 100644 --- a/KSHObjcUML/KSHObjcUML.m +++ b/KSHObjcUML/KSHObjcUML.m @@ -57,7 +57,8 @@ - (NSString *)projectName { NSString *tempProjectName = [VWKProject projectForKeyWindow].projectOriginalName; if (tempProjectName) { - _projectName = tempProjectName; + // When the project name contains “ ” replace to "_" + _projectName = [tempProjectName stringByReplacingOccurrencesOfString:@" " withString:@"_"]; } return _projectName; }