[docutils:bugs] #435 invalid references in "problematic" nodes with report_level=4
"Günter Milde" via Docutils-develop <[email protected]>
| Newsgroups | gmane.text.docutils.devel |
|---|---|
| Message-ID | </p/docutils/bugs/435/d71c181857eaace6af248247c512af678e9ee860.bugs@docutils.p.sourceforge.net> |
- **status**: open-fixed --> closed-fixed
- **Comment**:
Fixed in release 0.19.
Thank you for the report.
---
** [bugs:#435] invalid references in "problematic" nodes with report_level=4**
**Status:** closed-fixed
**Created:** Tue Nov 16, 2021 04:50 PM UTC by Dmitry Shachnev
**Last Updated:** Fri Feb 04, 2022 08:40 AM UTC
**Owner:** nobody
I don’t know if you will consider it a bug, but I decided to report it nevertheless.
When input reStructuredText has errors and you silence them with report_level=4, the following HTML will be generated:
```python
>>> from docutils.core import publish_parts
>>> parts = publish_parts('`', settings_overrides={'report_level': 4}, writer_name='html5')
>>> print(parts['html_body'])
<main>
<p><a href="#system-message-1"><span class="problematic" id="problematic-1">`</span></a></p>
</main>
```
The link is pointing to `#system-message-1`, however there is no element with `id="system-message-id"` because the warning itself was not generated.
---
Sent from sourceforge.net because [email protected] is subscribed to https://sourceforge.net/p/docutils/bugs/
To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/docutils/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list.