Skip to content

Conversation

ericniebler
Copy link

currently an sref like [exec.continues.on#5]{.sref} correctly generates a link to p5 of [exec.continues.on], but will generate a warning:

mpark/wg21: stable name exec.continues.on#5 not found

and then fail to include the subsection number. this PR fixes that.

currently an sref like `[exec.continues.on#5]{.sref}` correctly generates a link to p5 of `[exec.continues.on]`, but will generate a warning:

```
mpark/wg21: stable name exec.continues.on#5 not found
```

and then fail to include the subsection number. this PR fixes that.
@@ -365,7 +365,7 @@ def rm(): _diff('rmcolor', 'sout', 'del')

if 'sref' in elem.classes and isinstance(elem, pf.Span):
target = pf.stringify(elem)
number = stable_names.get(target)
number = stable_names.get(target.split('#')[0])
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks great! Thanks for the fix. Can I suggest a minor change here where we do something like name = target.split('#')[0], then the debug message to print "stable name not found" rather than "stable name not found"?

@mpark
Copy link
Owner

mpark commented Jun 2, 2025

Thanks for the fix @ericniebler! Do you mind also updating the doc and the test please? (Doc and Test)

The test should be pretty easy to update and regenerate TEST.html and TEST.pdf files.

For the doc, if taking the screenshot is too much of a hassle, just leave it and I can do it later.
If you're willing to do it, a screenshot of the HTML version is totally fine too!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants