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:
parent
58258188ce
commit
9e13a6aeae
@ -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 =>
|
||||
|
Loading…
Reference in New Issue
Block a user