From fc6c458fc2917c68be1c5abef26812567c87de32 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jaakko=20Kera=CC=88nen?= jaakko.keranen@iki.fi
Date: Fri, 11 Oct 2024 12:53:33 +0300
Subject: [PATCH 1/1] Strip carriage returns
utils.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/utils.py b/utils.py
index 9febca5..c7b9722 100644
--- a/utils.py
+++ b/utils.py
@@ -160,7 +160,7 @@ def clean_title(title):
if found:
line = line[found.end():]
line = unlabeled_link_pattern.sub(r'\1', line)
line = line.replace('\t', ' ')
line = line.replace('\t', ' ').replace('\r', '')
cleaned.append(line)
title = ' '.join(cleaned).strip()
return title
@@ -225,7 +225,7 @@ def prefix_links(src, prefix):
def strip_invalid(src):
def shorten_text(text, n):
--
2.25.1
text/plain
This content has been proxied by September (3851b).