Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
ziqian zhang
Grasscutter
Commits
2d48fab7
Commit
2d48fab7
authored
Aug 10, 2022
by
AnimeGitB
Committed by
Luke H-W
Aug 10, 2022
Browse files
Stop language linter from fighting the main linter on \n
parent
c6244794
Changes
1
Show whitespace changes
Inline
Side-by-side
manage_languages.py
View file @
2d48fab7
...
@@ -30,6 +30,7 @@ class JsonHelpers:
...
@@ -30,6 +30,7 @@ class JsonHelpers:
def
save
(
filename
:
str
,
data
:
dict
)
->
None
:
def
save
(
filename
:
str
,
data
:
dict
)
->
None
:
with
open
(
filename
,
'w'
,
encoding
=
'utf-8'
,
newline
=
'
\n
'
)
as
file
:
with
open
(
filename
,
'w'
,
encoding
=
'utf-8'
,
newline
=
'
\n
'
)
as
file
:
json
.
dump
(
data
,
file
,
ensure_ascii
=
False
,
indent
=
INDENT
)
json
.
dump
(
data
,
file
,
ensure_ascii
=
False
,
indent
=
INDENT
)
file
.
write
(
'
\n
'
)
# json.dump doesn't terminate last line
@
staticmethod
@
staticmethod
def
flatten
(
data
:
dict
,
prefix
=
''
)
->
dict
:
def
flatten
(
data
:
dict
,
prefix
=
''
)
->
dict
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment