From 6b40ff38ab05e41dad36f1dd514082ec6e24e42d Mon Sep 17 00:00:00 2001 From: goaaats <16760685+goaaats@users.noreply.github.com> Date: Fri, 8 Oct 2021 22:00:34 +0200 Subject: [PATCH] fix(Installer): choose first line of description --- .../Interface/Internal/Windows/PluginInstallerWindow.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Dalamud/Interface/Internal/Windows/PluginInstallerWindow.cs b/Dalamud/Interface/Internal/Windows/PluginInstallerWindow.cs index bf522a325..69ce9aa22 100644 --- a/Dalamud/Interface/Internal/Windows/PluginInstallerWindow.cs +++ b/Dalamud/Interface/Internal/Windows/PluginInstallerWindow.cs @@ -1127,10 +1127,11 @@ namespace Dalamud.Interface.Internal.Windows else if (!string.IsNullOrWhiteSpace(manifest.Description)) { const int punchlineLen = 200; + var firstLine = manifest.Description.Split()[0]; - ImGui.TextWrapped(manifest.Description.Length < punchlineLen - ? manifest.Description - : manifest.Description[..punchlineLen]); + ImGui.TextWrapped(firstLine.Length < punchlineLen + ? firstLine + : firstLine[..punchlineLen]); } startCursor.Y += sectionSize;