Hacktoberfest 2026 : les issues que les mainteneurs ont marquées pour octobre, ouvertes et accessibles aux débutants. Parcourir les issues Hacktoberfest

skip .rtf files or skip all markup in them?

Ouverte
#2,864 1 commentaire 0 réactions 0 personnes assignées Voir sur GitHub

Les mainteneurs répondent en général sous 1 jour

Personne n'a encore pris cette issue.

Évaluation

Difficulté
3/5
Temps estimé
1-2 jours
Accessibilité débutants
25/100
Type d'issue
Bug
Clarté
Plutôt claire
Activité
À l'abandon
Stack technique
python
Domaine
tooling

Piste de recherche

Start by reading the file-filtering and markup-handling code and its tests; the issue gives installer/windows/license.rtf as a concrete example where codespell changed markup. Clarify whether RTF files should be skipped entirely or only their markup excluded, then add coverage for the chosen behavior. Done means codespell no longer changes markup such as \pard to part.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

duplicate

happened to me in https://github.com/PintaProject/Pinta/pull/258#issuecomment-1571047402 that codespell "fixed" an .rtf file

❯ file installer/windows/license.rtf
installer/windows/license.rtf: Rich Text Format data, version 1, ANSI, code page 1252, default language ID 3082
❯ file --mime-type installer/windows/license.rtf
installer/windows/license.rtf: text/rtf

with the diff

❯ git diff --color -a 0cfd0e32^..0cfd0e32 -- installer/windows/license.rtf
diff --git a/installer/windows/license.rtf b/installer/windows/license.rtf
index c7a61208..ea9a67d5 100644
--- a/installer/windows/license.rtf
+++ b/installer/windows/license.rtf
@@ -1,5 +1,5 @@
 {\rtf1\ansi\ansicpg1252\deff0\deflang3082\deflangfe3082{\fonttbl{\f0\fswiss\fprq2\fcharset0 Arial;}}
-{\*\generator Msftedit 5.41.21.2509;}\viewkind4\uc1\pard\sa200\sl276\slmult1\lang9\f0\fs20 The MIT License\par
+{\*\generator Msftedit 5.41.21.2509;}\viewkind4\uc1\part\sa200\sl276\slmult1\lang9\f0\fs20 The MIT License\par
 Copyright (c) 2010 Jonathan Pobst <[email protected]>\par
 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\par
 The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\par

where \pard was replaced with part. within the markup

Langage dominant
Python
Étoiles
2.4k
Forks
531
Merge moyen
15 h 55 min
PR mergées (30 j)
17

Préparer son environnement

Ouvrir dans Codespaces

Lance le conteneur de développement du projet dans votre navigateur, avec votre propre compte GitHub.

  • Aucun Dockerfile ni fichier Docker Compose
  • Aucun modèle de pull request
  • Aucun guide de contribution

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de codespell-project/codespell

Toutes les issues de codespell-project/codespell

Issues similaires

Plus d'issues Python

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.