1
0
Fork 0
mirror of https://github.com/Nioux/AideDeJeu.git synced 2025-10-29 22:45:44 +00:00
This commit is contained in:
Yan Maniez 2018-08-03 21:18:21 +02:00
parent 1183cb62ec
commit e28a4e419d

View file

@ -553,11 +553,11 @@
else
{
var spans = link.SelectMany(x => CreateSpans(x, this.Theme.Link.FontFamily ?? family, attributes| this.Theme.Link.Attributes, this.Theme.Link.ForegroundColor, this.Theme.Link.BackgroundColor, size)).ToArray();
//var newlink = new KeyValuePair<string, string>(string.Join("", spans.Select(x => x.Text)), url);
//foreach (var span in spans)
//{
// AttachLink(span, newlink);
//}
var newlink = new KeyValuePair<string, string>(string.Join("", spans.Select(x => x.Text)), url);
foreach (var span in spans)
{
AttachLink(span, newlink);
}
links.Add(new KeyValuePair<string, string>(string.Join("",spans.Select(x => x.Text)), url));
return spans;
}