Preserve indentation in multi-line list entry
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- Python
- Estrellas
- 22
- Forks
- 13
- Merge medio
- 4 h 3 min
- PR fusionados (30 d)
- 5
Descripción
I would like to put this in a NEWS entry:
The following `threading` methods are now deprecated and should be replaced:
- `threading.activeCount` => :func:`threading.active_count`
- `threading.Condition.notifyAll` =>
:meth:`threading.Condition.notify_all`
But when blurb generates the NEWS file, it produces:
- bpo-43723: The following `threading` methods are now deprecated and should
be replaced:
- `threading.activeCount` => :func:`threading.active_count`
- `threading.Condition.notifyAll` =>
:meth:`threading.Condition.notify_all`
Which is invalid rst, because the second line of the list is not indented enough.
It's because blurb uses textwrap.wrap to reflow the text, and that function eats any leading space in the line. Fixing this might require doing something more RST-aware.
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
Comienza localizando el uso de Python's textwrap.wrap en blurb y reproduce el problema con la entrada de NEWS mostrada aquí. Rastrea cómo se reformatean las entradas de lista multilínea y, a continuación, verifica que la salida generada conserve la indentación necesaria para un reStructuredText válido.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- python
- Área
- cli
- Tipo de issue
- Error
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 45/100