From: Günter M. <mi...@us...> - 2021-11-16 16:29:54
|
> I think lineno here is indeed the start line of the containing paragraph. In this case, I would rather keep inline nodes as-is. Inline nodes cannot be from a different source to their parent block-level node, as the "include" directive is a block-level syntax construct without inline alternative. Source/line info can be easily retrieved from <inline_node_instance>.parent (or .parent.parent... in case we get nested inline some day). See the definition of the `nodes.Node.document` property for a simple way to do this. --- ** [feature-requests:#41] Not all Node instances have the source and line attributes set** **Status:** open **Group:** sandbox **Created:** Sun Jan 12, 2014 07:21 PM UTC by Brecht Machiels **Last Updated:** Thu Mar 02, 2017 10:20 AM UTC **Owner:** nobody The source and line attributes of Node elements are not set for all types of elements. For example, these attributes never get set on bulleted or enumerated list nodes. Other elements (such as literal block) don't have source set depending on the context. --- Sent from sourceforge.net because doc...@li... is subscribed to https://sourceforge.net/p/docutils/feature-requests/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/docutils/admin/feature-requests/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |