mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-06-09 10:06:34 +02:00
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:
@@ -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
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user