Skip to content

Commit

Permalink
replace \n with a line break tag
Browse files Browse the repository at this point in the history
  • Loading branch information
antheas committed Aug 1, 2024
1 parent 917da94 commit 2be0908
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rechunk/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,8 @@ def get_labels(
value = value.replace(vkey, pkg.version)

# OCI spec does not like new lines
value = value.replace('\n', '\\n')
value = value.replace('\r', '\\r')
value = value.replace('\n', '<br>')
value = value.replace('\r', '')

new_labels[key] = value

Expand Down

0 comments on commit 2be0908

Please sign in to comment.