From: Mark N. <Mar...@fr...> - 2005-10-06 21:35:53
|
Felix Wiemann wrote: > > Mark Nodine wrote: > > > Is the hyperlink transition table in nodes.py up to date? > > Yes, I think it is. > > > ==== ===== ======== ======== ======= ==== ===== ===== > > Old State Input Action New State Notes > > ----------- -------- ----------------- ----------- ----- > > ids types new type sys.msg. dupname ids types > > ==== ===== ======== ======== ======= ==== ===== ===== > > [...] > > old False explicit implicit old new True > > [...] > > ==== ===== ======== ======== ======= ==== ===== ===== > > > > Specifically, if the directives.txt file is processed strictly > > according to this transition table, it should generate an error > > Not an error, but rather an informational message, because an explicit > target overrides an implicit target. > > > about a duplicate target "contents" (assuming I'm interpreting the > > table correctly). First it has an implicit "contents" target > > generated by the topic created by the contents directive (since no > > alternative name was given in the argument of the directive), which > > should move it to state "new False". Later, there is an explicit > > ".. _contents:" target, which should hit row 4 ("old False") in the > > table, update to state "new True" and create a sys.msg complaining > > about the duplicate implicit target. > > > > What am I missing? > > That the message is actually being generated. :-) > > $ rst2pseudoxml.py --report=1 directives.txt /dev/null > directives.txt:868: (INFO/1) Duplicate implicit target name: "contents". > [...] Thanks. I never saw that info-level message since I don't run with --report=1. Would you be open to updating the transition table to give the level of system message also (1-3; I don't think there's a SEVERE in there)? --Mark |