Skip to content

Commit

Permalink
Fix blank newline on empty examine groups (space-wizards#33813)
Browse files Browse the repository at this point in the history
Construction always grants a blank newline even if it not currently constructing.
  • Loading branch information
metalgearsloth authored Dec 10, 2024
1 parent 7ed32f2 commit 2b487ba
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Content.Shared/Examine/ExamineSystemShared.cs
Original file line number Diff line number Diff line change
Expand Up @@ -409,8 +409,10 @@ public ExamineGroupDisposable PushGroup(string groupName, int priority=0)
private void PopGroup()
{
DebugTools.Assert(_currentGroupPart != null);
if (_currentGroupPart != null)
if (_currentGroupPart != null && !_currentGroupPart.Message.IsEmpty)
{
Parts.Add(_currentGroupPart);
}

_currentGroupPart = null;
}
Expand Down

0 comments on commit 2b487ba

Please sign in to comment.