Skip to content

Commit 71cf0b5

Browse files
committed
Add function name trimming
1 parent 45aa2ef commit 71cf0b5

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

Source/ExcelDna.IntelliSense/Providers/WorkbookIntelliSenseProvider.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ public IEnumerable<FunctionInfo> GetFunctionInfos()
9999
}
100100
}
101101

102+
// Some cleanup and normalization
103+
functionName = functionName.Trim();
102104
helpTopic = FunctionInfo.ExpandHelpTopic(_path, helpTopic);
103105

104106
yield return new FunctionInfo

Source/ExcelDna.IntelliSense/Providers/XmlIntelliSenseProvider.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ public void Refresh()
4949
foreach (var func in _intelliSense.XmlFunctionInfo.FunctionsList)
5050
{
5151
func.SourcePath = _fileName;
52+
func.Name = func.Name.Trim();
5253
func.HelpTopic = FunctionInfo.ExpandHelpTopic(_path, func.HelpTopic);
5354
}
5455
}

0 commit comments

Comments
 (0)