Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bob
gridtk
Commits
9c107f73
Commit
9c107f73
authored
Dec 04, 2017
by
Amir MOHAMMADI
Browse files
keep the whitespace
parent
be086ba2
Pipeline
#14539
passed with stages
in 10 minutes and 52 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
gridtk/script/jgen.py
View file @
9c107f73
...
@@ -135,7 +135,7 @@ def main(command_line_options = None):
...
@@ -135,7 +135,7 @@ def main(command_line_options = None):
unique_lines
=
[]
unique_lines
=
[]
for
line
in
data
.
split
(
'
\n
'
):
for
line
in
data
.
split
(
'
\n
'
):
if
not
line
.
strip
():
if
not
line
.
strip
():
f
.
write
(
'
\n
'
)
f
.
write
(
line
+
'
\n
'
)
elif
line
.
strip
()[
0
]
==
'#'
:
elif
line
.
strip
()[
0
]
==
'#'
:
f
.
write
(
line
+
'
\n
'
)
f
.
write
(
line
+
'
\n
'
)
elif
line
not
in
unique_lines
:
elif
line
not
in
unique_lines
:
...
...
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