From: Dmitry S. <man...@us...> - 2021-11-16 16:52:22
|
Sorry, I meant “there is no element with `id="system-message-1"`” of course. --- ** [bugs:#435] HTML writer generates invalid references with report_level=4** **Status:** open **Created:** Tue Nov 16, 2021 04:50 PM UTC by Dmitry Shachnev **Last Updated:** Tue Nov 16, 2021 04:50 PM 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 doc...@li... 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. |