Add MarkupNode.IsPlainText helper

Was reviewing https://github.com/space-wizards/RobustToolbox/pull/5633 and figured this would make sense.
This commit is contained in:
PJB3005
2026-05-05 19:20:22 +02:00
parent ff4edd0423
commit 83c05413e8
2 changed files with 3 additions and 0 deletions
+1
View File
@@ -44,6 +44,7 @@ END TEMPLATE-->
- `BigInteger` is now allowed by the sandbox.
- `ISpanFormattable` and `IUtf8SpanFormattable` are now allowed by the sandbox.
- `IParsable`, `ISpanParsable`, and `IUtf8SpanParsable` are now allowed by the sandbox.
- Added `MarkupNode.IsPlainText` helper property.
### Bugfixes
+2
View File
@@ -14,6 +14,8 @@ public sealed class MarkupNode : IComparable<MarkupNode>, IEquatable<MarkupNode>
public readonly Dictionary<string, MarkupParameter> Attributes;
public readonly bool Closing;
public bool IsPlainText => Name == null;
/// <summary>
/// Creates a nameless tag for plaintext
/// </summary>