actually split by line

This commit is contained in:
goaaats 2021-10-08 22:31:22 +02:00
parent 550e4c4355
commit daaf3c9328
No known key found for this signature in database
GPG key ID: F18F057873895461

View file

@ -1127,7 +1127,7 @@ namespace Dalamud.Interface.Internal.Windows
else if (!string.IsNullOrWhiteSpace(manifest.Description))
{
const int punchlineLen = 200;
var firstLine = manifest.Description.Split()[0];
var firstLine = manifest.Description.Split(new [] { '\r', '\n' })[0];
ImGui.TextWrapped(firstLine.Length < punchlineLen
? firstLine