From dd196d739262d2763fb21d1678ba15a1d4927840 Mon Sep 17 00:00:00 2001 From: Tykayn Date: Fri, 3 Jan 2025 23:27:43 +0100 Subject: [PATCH] up typo correction --- __pycache__/format_typo.cpython-311.pyc | Bin 4769 -> 5557 bytes format_typo.py | 27 +++++++++--------------- test_format_typo.py | 2 +- 3 files changed, 11 insertions(+), 18 deletions(-) diff --git a/__pycache__/format_typo.cpython-311.pyc b/__pycache__/format_typo.cpython-311.pyc index 417db398c861f13d96728bee8d98ebaa452f8d3e..13e859ae6c469ea71133466e18424ac6eab35c90 100644 GIT binary patch delta 1035 zcma)3Ur19?7{6zCYi@JL{mHp3$DQWfbxoMF9Qv@pLWL>86oiyDJy#RvlrxuY816A5 z2su5}+XiaatWbtezU`@}Xt0O46ok-2PYKb>dZ=@pDJ6~$e82O3zwh_^F6X_=tjmklmG)>NMTB|zGS8>)?b=s;p8<4%4_e^Ia zx_}x_zaz|v7xRMZBUmXz_w9}=y*G$<6`P{a)2m>V; z$n<}zaIM*U@=_6Ymtc3M|1+$AGXH4)nUozZLQe^LGW{QpD74-u^SObw0Xdut6``*L zegD~%)^CJmYi?|9Oh&nhBJ`J_|HLX~M_#wcQ=9Hr?$gbgY_bTwCFrI4{HD5Ht;c5i zENr1b-srlBOE(NWB&myEax%V|K?{Wh+ovF4wgl`VzjSTDlW)^E0f(J3igtQ7j-s&` zTjiWm!>ZXu3F9U*X?Uo)N+qrNZ-!m|atBkZ=NF{7qFKUJBWkdh&Fo^}W8f!m>pC>O zG!5i`*4e=j`vMLy=%Jvfu@ptPiPh}4U^X2yxl$8}#G`XkB=YabPA2g)XeM{eb`T^f Y^QyxJtOwjNbecfd0e1{8;Ud*r;n$f>*Pu{HEvO$4jv#b&S03liY=A#!RAZsS}d|vd>YYu zI@VT-_OY583Yzv+yg(8rH2DCJ*<>poKSrg=ojiFm5 0: - print(f" Ajout d'espaces autour de certaines ponctuations : {nb_espaces} modification(s)") - - def sauvegarder_si_modifie(contenu_corrige, nb_maj, nb_sauts, nb_espaces): # Faire un rapport des modifications apportées if nb_maj == 0 and nb_sauts == 0 and nb_espaces == 0: diff --git a/test_format_typo.py b/test_format_typo.py index e9bb991..b11170a 100644 --- a/test_format_typo.py +++ b/test_format_typo.py @@ -6,7 +6,7 @@ from format_typo import corriger_typo def test_correction_entetes_org(self): texte_avec_entetes = """* chapitre 1 :titre: -* chapitre 2 : titre :""" +* chapitre 2 : titre : """ texte_corrige = corriger_typo(texte_avec_entetes) self.assertEqual(texte_corrige, """* chapitre 1 :titre: * chapitre 2 :titre:""")