Skip to content

Commit

Permalink
Merge pull request #2 from justjanne/justjanne/fix-lineendings
Browse files Browse the repository at this point in the history
fix: replace win/mac lineendings with unix
  • Loading branch information
margau authored May 30, 2024
2 parents 583078c + 782fca2 commit 22a1e57
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions schedule_gpn.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,11 @@ def cleanup_event(event):
if event["type"] in ["Workshop", "Meetup"]:
event["do_not_record"] = True

for key in event.keys():
if type(event[key]) is str:
# cleanup windows and macOS line endings
event[key] = event[key].replace("\r\n", "\n").replace("\r", "\n")

return True

def main():
Expand Down

0 comments on commit 22a1e57

Please sign in to comment.