Skip to content

Commit b2e9586

Browse files
authored
Merge pull request #90 from wh1t3cAt1k/master
Split on space too
2 parents ac9824a + 85035b5 commit b2e9586

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Source/ExcelDna.IntelliSense/ToolTipForm.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ protected override void OnPaint(PaintEventArgs e)
354354
color = _textColor;
355355
}
356356

357-
foreach (var text in GetRunParts(run.Text)) // Might split on space too?
357+
foreach (var text in GetRunParts(run.Text))
358358
{
359359
if (text == "") continue;
360360

@@ -431,7 +431,7 @@ static IEnumerable<string> GetRunParts(string runText)
431431
int lastStart = 0;
432432
for (int i = 0; i < runText.Length; i++)
433433
{
434-
if (runText[i] == ',')
434+
if (runText[i] == ',' || runText[i] == ' ')
435435
{
436436
yield return runText.Substring(lastStart, i - lastStart + 1);
437437
lastStart = i + 1;

0 commit comments

Comments
 (0)