From 7461719e236824125e50fcec74e40e74951d19fd Mon Sep 17 00:00:00 2001 From: j Date: Wed, 20 Mar 2024 12:50:11 +0100 Subject: [PATCH] fix links at end of paragraph --- ox/html.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ox/html.py b/ox/html.py index 8666713..28dcec1 100644 --- a/ox/html.py +++ b/ox/html.py @@ -392,8 +392,8 @@ def sanitize_html(html, tags=None, global_attributes=[]): else: parts[i] = escape_html(decode_html(part)) html = ''.join(parts) - html = html.replace('\n\n', '

') html = add_links(html) + html = html.replace('\n\n', '

') return sanitize_fragment(html) def split_tags(string):