Regression: impossible to dump multiline strings with leading newline
Mantenedores costumam responder em até 2 dias
Avaliação
- Dificuldade
- 3/5
- Tempo estimado
- 1-2 dias
- Facilidade para iniciantes
- 25/100
Direção de pesquisa
Start with the reproduction: tomlkit.string(...) with escape=False passed to tomlkit.dumps, comparing the output with and without the leading newline. The behaviour change came from pull request #551, and open pull request #656 already proposes moving it under the escape flag, so read that diff first. Done means the aligned-strings example dumps without the extra newline, and the maintainers have agreed on the fix since #656 is still open.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Pull request #551 changed the behaviour of raw, non-escaped string values. Running
import tomlkit
s = tomlkit.string(
"\n aligned\n strings\n",
multiline=True,
literal=True,
escape=False,
)
print(tomlkit.dumps(s))
used to output
'''
aligned
strings
'''
as expected, but now outputs
'''
aligned
strings
'''
(note the extra newline). In fact, it is now impossible to produce the desired output.
Proposed fix: hide the behaviour change of #551 under the escape flag.
- Linguagem predominante
- Python
- Estrelas
- 862
- Forks
- 193
- Merge médio
- 4d 2h
- PRs com merge (30d)
- 25
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Tem um modelo de pull request
- Sem guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de python-poetry/tomlkit
-
Speed up array appendsTalvez já em andamento @harshitgupta31415 assumiu hoje. Aberta
Dificuldade 4/5 1-2 dias Facilidade para iniciantes 42/100
python-poetry/tomlkit#665 ·
Mantenedores costumam responder em até 2 dias
-
Deleting the last key under a dotted key in an inline table produces invalid TOMLTalvez já em andamento @cig13zs assumiu há 1 dia. Aberta
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 62/100
python-poetry/tomlkit#662 ·
Mantenedores costumam responder em até 2 dias
-
AttributeError on an out-of-order table under an indented header (4+ levels)Talvez já em andamento @cig13zs assumiu há 1 dia. Aberta
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 18/100
python-poetry/tomlkit#661 ·
Mantenedores costumam responder em até 2 dias
-
In-place array repetition changes values without updating serialized TOMLTalvez já em andamento @harbinresearcher assumiu há 4 dias. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 35/100
python-poetry/tomlkit#646 · 1 comentário ·
Mantenedores costumam responder em até 2 dias
-
tomlkit 0.15.1 fails on out-of-order table headerTalvez livre de novo Um pull request para esta issue foi fechado sem ser mesclado. Aberta
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 45/100
python-poetry/tomlkit#632 ·
Mantenedores costumam responder em até 2 dias
Todas as issues de python-poetry/tomlkit
Issues semelhantes
-
Questions crashes on a real SQuAD2 no-answer predictionTalvez já em andamento @HuaTNA assumiu hoje. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
Mantenedores costumam responder em até 1 dia
-
GST is read as Gulf Standard Time (UTC+4) instead of Guam Standard Time (UTC+10)Talvez já em andamento @yang00333 assumiu hoje. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
DOI-USGS/dataretrieval-python#454 ·
Mantenedores costumam responder em até 4 dias
-
area:core-platform effort:S priority:P3 status:in-review type:test
Dificuldade 2/5 Menos de uma hora Facilidade para iniciantes 80/100
randomparity/kdive#3246 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Requantification library converts m/z to mass with the hydrogen-atom mass instead of the proton massAbertabug
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 85/100
nf-core/metaboigniter#130 ·
Mantenedores costumam responder em até 1 dia
-
netbox status: needs owner type: documentation
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 75/100
netbox-community/netbox#23412 · 1 reação ·
Mantenedores costumam responder em até 1 dia