From 5f3b2eb020da1b2bd21d2923e7073a541e03c11c Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Sun, 28 Dec 2025 11:39:15 +0100 Subject: [PATCH] Convert Windows line endings to UNIX format, fixes display issues with micron files created on Windows --- nomadnet/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nomadnet/util.py b/nomadnet/util.py index d1d38c4..8f077f6 100644 --- a/nomadnet/util.py +++ b/nomadnet/util.py @@ -1,6 +1,5 @@ import re import unicodedata -import RNS def strip_modifiers(text): def process_characters(text): @@ -26,5 +25,6 @@ def strip_modifiers(text): stripped = re.sub(r'[\U000E0100-\U000E01EF]', '', stripped, flags=re.UNICODE) stripped = re.sub(r'[\U0001F3FB-\U0001F3FF]', '', stripped, flags=re.UNICODE) stripped = re.sub(r'[\u200D\u200C]', '', stripped) + stripped = re.sub(r'\r\n?', '\n', stripped) return stripped