Skip to content

Commit 5dfd854

Browse files
committed
Render multiple definitions as bullet list
1 parent 98ad1a0 commit 5dfd854

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

src/QuickInfo/Processors/Chinese.cs

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,19 @@ public object GetResult(Query query)
9595

9696
if (entry.Definitions != null && entry.Definitions.Length > 0)
9797
{
98-
var definitions = string.Join("; ", entry.Definitions);
99-
details.Add(definitions);
98+
if (entry.Definitions.Length == 1)
99+
{
100+
details.Add(Answer(entry.Definitions[0]));
101+
}
102+
else
103+
{
104+
var bullets = new Node
105+
{
106+
List = entry.Definitions,
107+
Style = NodeStyles.BulletList
108+
};
109+
details.Add(bullets);
110+
}
100111
}
101112
}
102113

0 commit comments

Comments
 (0)