strictdoc-project / strictdoc

Software for technical documentation and requirements management.
https://strictdoc.readthedocs.io/en/stable/
Other
156 stars 25 forks source link

LINKs: Fix link to anchor in other sdoc #1906

Closed haxtibal closed 4 months ago

haxtibal commented 4 months ago

This kind of linking worked for [FREETEXT] (was covered by tests), but not for [TEXT] (was not covered by tests).

Root cause was that Anchor.parent is an SDocNodeField which has no parent_or_including_document. That property is defined on the SDocNodeField.parent SDocNode. So we need Anchor.parent.parent.

Fixes #1905.

stanislaw commented 4 months ago

Thanks!