diff --git a/scripts/markdown_conventions.py b/scripts/markdown_conventions.py index 51ceec4be1..40d096cc52 100755 --- a/scripts/markdown_conventions.py +++ b/scripts/markdown_conventions.py @@ -106,6 +106,10 @@ def find_ill_formed_block(mdcode): output = re.sub( r'(^|\n)(#+\s.*)[\.,:;!?¡¿]\s*($|\n)', r'\1\2\3', output) + # Replace strange whitespace with normal spaces + output = re.sub( + r'(?