jonnyhyman / jonnyhyman/MakePython

Editor >> Pasting code does not conform into proper indentation format

Offen
#15 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
good first issue help wanted
Vorherrschende Sprache
Python
Sterne
5
Forks
2
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

If pasting code into the editor, since the editor actually uses '\t' characters instead of standard 4 spaces for indentation, the indentation will most likely not match the overall indentation of the document.

The reason to keep '\t' characters as default indentation in the editor is because that is the default of PyQt / Qt's QTextEdit. Subclassing QTextEdit entirely and writing indentation from scratch would be the best fix for this.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Rechercherichtung

Start by examining the editor's PyQt/Qt QTextEdit behavior for indentation and pasted text. Confirm how tabs are currently used and define the expected indentation after pasting code; done means pasted code conforms to the surrounding document's indentation without disrupting existing text.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
python
Bereich
desktop
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
42/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.