1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-15 19:33:20 +08:00

Fix newlines being considered in user profile content

This commit is contained in:
Dean Herbert 2019-08-15 14:32:31 +09:00
parent 58258188ce
commit 9e13a6aeae

View File

@ -138,6 +138,9 @@ namespace osu.Game.Overlays.Profile.Header
private void tryAddInfo(IconUsage icon, string content, string link = null)
{
// newlines could be contained in API returned user content.
content = content?.Replace("\n", " ");
if (string.IsNullOrEmpty(content)) return;
bottomLinkContainer.AddIcon(icon, text =>