Skip to content

Commit

Permalink
[change] json紧凑输出的选项名由{exportTable|convertTable}.json.compact改为json.c…
Browse files Browse the repository at this point in the history
…ompact
  • Loading branch information
pirunxi committed Mar 23, 2024
1 parent d9de3de commit 8deeb4e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Luban.DataTarget.Builtin/Json/JsonConvertTarget.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public class JsonConvertTarget : DataTargetBase
{
protected override string OutputFileExt => "json";

public static bool UseCompactJson => EnvManager.Current.GetBoolOptionOrDefault($"{FamilyPrefix}.json", "compact", true, false);
public static bool UseCompactJson => EnvManager.Current.GetBoolOptionOrDefault("json", "compact", true, false);

protected virtual JsonDataVisitor ImplJsonDataVisitor => JsonConvertor.Ins;

Expand Down
2 changes: 1 addition & 1 deletion src/Luban.DataTarget.Builtin/Json/JsonDataTarget.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public class JsonDataTarget : DataTargetBase
{
protected override string OutputFileExt => "json";

public static bool UseCompactJson => EnvManager.Current.GetBoolOptionOrDefault($"{FamilyPrefix}.json", "compact", true, false);
public static bool UseCompactJson => EnvManager.Current.GetBoolOptionOrDefault("json", "compact", true, false);

protected virtual JsonDataVisitor ImplJsonDataVisitor => JsonDataVisitor.Ins;

Expand Down

0 comments on commit 8deeb4e

Please sign in to comment.