From e0eacaba215f668e304d6309dce2d9285bb435bf Mon Sep 17 00:00:00 2001 From: Fredrik Bakke Date: Tue, 29 Oct 2024 14:21:20 +0100 Subject: [PATCH] chore: Replace strange whitespace (#1215) A simple addition to our markdown conventions that replaces nonstandard Unicode whitespace characters with normal spaces. --- scripts/markdown_conventions.py | 4 ++++ .../fundamental-theorem-of-arithmetic.lagda.md | 14 +++++++------- .../prime-numbers.lagda.md | 2 +- .../commutative-finite-rings.lagda.md | 2 +- .../transpositions-standard-finite-types.lagda.md | 2 +- src/finite-group-theory/transpositions.lagda.md | 4 ++-- .../coproduct-decompositions-subuniverse.lagda.md | 8 ++++---- src/foundation/coproduct-decompositions.lagda.md | 4 ++-- .../iterated-cartesian-product-types.lagda.md | 4 ++-- src/lists/functoriality-lists.lagda.md | 2 +- src/lists/permutation-lists.lagda.md | 2 +- src/lists/permutation-vectors.lagda.md | 2 +- src/lists/quicksort-lists.lagda.md | 4 ++-- src/lists/sort-by-insertion-vectors.lagda.md | 6 +++--- src/order-theory/decidable-preorders.lagda.md | 2 +- ...ition-species-of-types-in-subuniverses.lagda.md | 4 ++-- ...eries-species-of-types-in-subuniverses.lagda.md | 2 +- 17 files changed, 36 insertions(+), 32 deletions(-) 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'(?