Skip to content

Commit

Permalink
no more blank lines in csv
Browse files Browse the repository at this point in the history
  • Loading branch information
teuben committed Sep 16, 2019
1 parent 265ce3d commit 595bb9b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ascl_list1.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@
print(c)

elif args.list:
output_str = "Ordinal,Status,Software,Description,Public Code Repo,External Link,Contributers\n"
output_str = "Ordinal,Status,Software,Description,Public Code Repo,External Link,Contributers"
print( output_str )
for i in range(len(d2)):
ri = d2[i]
Expand All @@ -133,7 +133,7 @@
el = "\"" + ri["External Link"] + "\""
cont = "\"" + s.join(ri["Contributors"]) + "\""

output_str = s2.join([str(i), str(0), soft, desc, pcr, el, cont]) + "\n\n"
output_str = s2.join([str(i), str(0), soft, desc, pcr, el, cont])
print(output_str.encode("utf8"))

else:
Expand Down

0 comments on commit 595bb9b

Please sign in to comment.