mirror of
https://github.com/EarthMC/QuickShop-Reremake.git
synced 2026-11-25 01:49:49 -05:00
We always use prettyPrint and disableHtmlEscaping
Former-commit-id: 04eae67a4e44a939271272ce45efb9f99d31f882
This commit is contained in:
1 parent
1d317b4d64
commit
e31e93b68f
1 file changed
+3
-4
+3
-4
@@ -28,12 +28,11 @@ public final class JSONConfiguration extends FileConfiguration {
|
||||
@NotNull
|
||||
@Override
|
||||
public String saveToString() {
|
||||
final GsonBuilder gsonBuilder = new GsonBuilder();
|
||||
final GsonBuilder gsonBuilder = new GsonBuilder().disableHtmlEscaping();
|
||||
|
||||
if (options().prettyPrint()) {
|
||||
//if (!options().prettyPrint()) {
|
||||
gsonBuilder.setPrettyPrinting();
|
||||
}
|
||||
|
||||
//}
|
||||
final Gson gson = gsonBuilder.create();
|
||||
final Object value = SerializationHelper.serialize(getValues(false));
|
||||
final String dump = StringEscapeUtils.unescapeJava(gson.toJson(value));
|
||||
|
||||
Reference in new issue
Block a user