mgedmin / restview

ReStructuredText viewer

Home Page:https://pypi.python.org/pypi/restview

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Duplicate implicit target names cause ugly error messages

mgedmin opened this issue · comments

See https://stackoverflow.com/questions/39717529/duplicate-implicit-target-name-how-to-use-a-subtitle-name-more-than-once: text like

Document title
==============

Section 1
---------

Description
~~~~~~~~~~~

Section 2
---------

Description
~~~~~~~~~~~

causes (INFO/1) Duplicate implicit target name: "description" under Section 2. Adding explicit target names (via .. _sec2_description: above the heading) doesn't help -- instead it adds a new error at the bottom, about an unused target.

We should hide these errors by default. We should probably hide all INFO messages by default.