From: Günter M. <mi...@us...> - 2022-06-01 21:48:57
|
- **status**: open --> closed-duplicate --- ** [bugs:#438] The source info of topic node is not filled when topic directive only contains a bullet list** **Status:** closed-duplicate **Created:** Thu Dec 09, 2021 04:37 PM UTC by Takeshi KOMIYA **Last Updated:** Sat Dec 11, 2021 10:06 PM UTC **Owner:** nobody It seems docutils does not fill the topic node with the source info when the topic directive has a bullet list. ``` from docutils.core import publish_doctree # topic directive with a paragraph s = """ .. topic:: 5. Topic Title Paragraph """ (topic,) = publish_doctree(s) print(topic.source, topic.line) # topic directive with a bullet list s = """ .. topic:: 5. Topic Title - Bullet List Item """ (topic,) = publish_doctree(s) print(topic.source, topic.line) ``` ``` $ python test.py <string> None None None ``` --- 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. |