Conversion: Fix a regression in the previous release that broke heuristic processing

This commit is contained in:
Kovid Goyal 2025-02-08 08:03:46 +05:30
parent 2242151ea6
commit 748e4c77e8
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -876,5 +876,5 @@ class HeuristicProcessor:
if self.deleted_nbsps:
# put back non-breaking spaces in empty paragraphs so they render correctly
html = self.anyblank.sub(r'\n\g<openline>\u00a0\g<closeline>', html)
html = self.anyblank.sub(r'\n\g<openline>' + '\u00a0' + r'\g<closeline>', html)
return html