Skip to content

Commit

Permalink
format_merge: use newlines but strip trailing newlines
Browse files Browse the repository at this point in the history
  • Loading branch information
abhidg committed Nov 18, 2024
1 parent 8259a15 commit 390e4ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/arcmapper/fhir.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,5 +90,5 @@ def format_merge(merged_data, selected_columns: list[str] | None = None):
for resource in merged_data:
out += "{{{ resource " + resource + "\n"
out += merged_data[resource][selected_columns].to_csv(index=False, sep="\t")
out += "}}}"
return out
out += "}}}\n"
return out.strip()

0 comments on commit 390e4ad

Please sign in to comment.