Skip to content

Commit 032f3aa

Browse files
committed
Fixed formatting bug fix.
1 parent aded9d0 commit 032f3aa

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Packages/com.unity.inputsystem/InputSystem/Editor/AssetImporter/InputActionCodeGenerator.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,10 @@ public void DocExample(string code)
546546

547547
private void DocComment(string text)
548548
{
549-
WriteLine(string.Concat("/// ", text));
549+
if (string.IsNullOrEmpty(text))
550+
WriteLine("///");
551+
else
552+
WriteLine(string.Concat("/// ", text));
550553
}
551554

552555
private void DocElement(string tag, string text)

0 commit comments

Comments
 (0)