Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update note_labels_from() to extract figure captions. #16

Closed
shimizukawa opened this issue Jan 2, 2015 · 1 comment
Closed

Update note_labels_from() to extract figure captions. #16

shimizukawa opened this issue Jan 2, 2015 · 1 comment

Comments

@shimizukawa
Copy link
Member

Reported by isopogon, Sep 17, 2008

The attached patch changes note_labels_from() to extract figure captions as
labels, so :ref: to a figure gets the correct label.

sphinx-figure-caption-patch

1022 bytes Download

Comment 1 by georg.brandl, Sep 17, 2008

Does every figure node contain a caption? If not, sectname may be undefined after the
elif block.

Labels: Type-Enhancement Milestone-0.5 Component-Markup

Comment 2 by isopogon, Sep 17, 2008

Ah. Whoops. I'll fix that and upload another patch.

Comment 3 by isopogon, Sep 17, 2008

Okay, this should work better.

sphinx-figure-caption-patch2

1.0 KB Download

Comment 4 by georg.brandl, Sep 24, 2008

Thanks! Committed in r66591.


@shimizukawa
Copy link
Member Author

From Georg Brandl on 2010-08-25 12:19:05+00:00

Removing milestone: 0.5 (automated comment)

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 12, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant