`gh stack submit` with PULL_REQUEST_TEMPLATE.md that has `CRLF` line endings
- Lingua principale
- Go
- Stelle
- 1.5k
- Fork
- 70
- Merge medio
- 1g 8h
- PR unite (30g)
- 7
Descrizione
**Problem**
Submit is rendering extra line endings when it sees `CRLF`. Opening in the $EDITOR also has these extra line endings.
**Descirption**
When developing on Windows, it is common for git to normalize line endings to CRLF and then back to LF on commit.
On Windows, given a template with the following:
It opens in the submit editor like this (each red mark is an extra newline):
I replaced `CRLF` with `LF`, and then it works fine.
I have workarounds, just a minor inconvenience.
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Reproduce the issue on Windows with a CRLF PULL_REQUEST_TEMPLATE.md, then trace the gh stack submit path that loads the template and opens the editor. Confirm the fix by checking that the template displays without extra line endings and that the existing workaround is no longer needed.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- git, go
- Ambito
- cli
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Tranquilla
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 55/100