From 2be09080891ab48a59d7b2d1af86265051e85be9 Mon Sep 17 00:00:00 2001 From: Antheas Kapenekakis Date: Thu, 1 Aug 2024 12:57:07 +0300 Subject: [PATCH] replace \n with a line break tag --- src/rechunk/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rechunk/utils.py b/src/rechunk/utils.py index 18e4570..72204e1 100644 --- a/src/rechunk/utils.py +++ b/src/rechunk/utils.py @@ -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', '
') + value = value.replace('\r', '') new_labels[key] = value