Revert "Fix object newline when missing custom properties"

This reverts commit c246c82bfe.
This commit is contained in:
barsdeveloper
2024-09-08 13:41:14 +02:00
parent c246c82bfe
commit 2114abef5c
3 changed files with 9 additions and 7 deletions

7
dist/ueblueprint.js vendored
View File

@@ -6115,6 +6115,7 @@ class ObjectEntity extends IEntity {
static printKey = k => !k.startsWith(Configuration.subObjectAttributeNamePrefix) ? k : ""
static attributeSeparator = "\n"
static wrap = this.notWrapped
static trailing = true
static attributes = {
...super.attributes,
Class: ObjectReferenceEntity,
@@ -6767,14 +6768,14 @@ class ObjectEntity extends IEntity {
+ (Self.attributes.CustomProperties.ignored !== true && this.CustomProperties.ignored !== true
? this.getCustomproperties().map(pin =>
deeperIndentation
+ attributeSeparator
+ printKey("CustomProperties ")
+ pin.serialize(insideString)
).join("")
).join(Self.attributeSeparator)
: ""
)
+ attributeSeparator
+ indentation + "End Object\n";
+ indentation + "End Object"
+ (this.trailing ? attributeSeparator : "");
return result
}
}

File diff suppressed because one or more lines are too long

View File

@@ -41,6 +41,7 @@ export default class ObjectEntity extends IEntity {
static printKey = k => !k.startsWith(Configuration.subObjectAttributeNamePrefix) ? k : ""
static attributeSeparator = "\n"
static wrap = this.notWrapped
static trailing = true
static attributes = {
...super.attributes,
Class: ObjectReferenceEntity,
@@ -695,14 +696,14 @@ export default class ObjectEntity extends IEntity {
+ (Self.attributes.CustomProperties.ignored !== true && this.CustomProperties.ignored !== true
? this.getCustomproperties().map(pin =>
deeperIndentation
+ attributeSeparator
+ printKey("CustomProperties ")
+ pin.serialize(insideString)
).join("")
).join(Self.attributeSeparator)
: ""
)
+ attributeSeparator
+ indentation + "End Object\n"
+ indentation + "End Object"
+ (this.trailing ? attributeSeparator : "")
return result
}
}