From: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> Date: Tue, 10 Dec 2024 13:45:20 +0000 (+1100) Subject: Fix blank newline on empty examine groups (#33813) X-Git-Url: https://git.smokeofanarchy.ru/gitweb.cgi?a=commitdiff_plain;h=2b487baea0ad82a95b2ad0f57872bf222e0808a7;p=space-station-14.git Fix blank newline on empty examine groups (#33813) Construction always grants a blank newline even if it not currently constructing. --- diff --git a/Content.Shared/Examine/ExamineSystemShared.cs b/Content.Shared/Examine/ExamineSystemShared.cs index 1e97e8f340..4372b7d516 100644 --- a/Content.Shared/Examine/ExamineSystemShared.cs +++ b/Content.Shared/Examine/ExamineSystemShared.cs @@ -409,8 +409,10 @@ namespace Content.Shared.Examine private void PopGroup() { DebugTools.Assert(_currentGroupPart != null); - if (_currentGroupPart != null) + if (_currentGroupPart != null && !_currentGroupPart.Message.IsEmpty) + { Parts.Add(_currentGroupPart); + } _currentGroupPart = null; }