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

Fix #4784: latex_show_urls assigns incorrect footnote numbers #4827

Merged

Conversation

tk0miya
Copy link
Member

@tk0miya tk0miya commented Apr 10, 2018

Feature or Bugfix

  • Bugfix

Purpose

class SubstitutionDefinitionsRemover(SphinxTransform):
"""Remove ``substitution_definition node from doctrees.

.. note:: In Sphinx-1.7, this transform is only used in LaTeX builder.
Copy link
Member Author

Choose a reason for hiding this comment

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

I added this as local transform for LaTeX builder. But substituion_definition node is not used in all of builders. So I'll move this to normal transform which is invoked in reading phase, in master branch.

@tk0miya tk0miya force-pushed the 4784_latex_show_urls_and_substitutions branch from c714600 to 5ef8da5 Compare April 12, 2018 14:40
@codecov
Copy link

codecov bot commented Apr 12, 2018

Codecov Report

Merging #4827 into 1.7 will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##              1.7    #4827      +/-   ##
==========================================
+ Coverage   81.88%   81.89%   +<.01%     
==========================================
  Files         284      285       +1     
  Lines       37763    37782      +19     
  Branches     5875     5876       +1     
==========================================
+ Hits        30923    30940      +17     
- Misses       5527     5529       +2     
  Partials     1313     1313
Impacted Files Coverage Δ
sphinx/transforms/references.py 100% <100%> (ø)
sphinx/builders/latex.py 77.2% <100%> (+0.88%) ⬆️
tests/test_build_latex.py 94.85% <100%> (+0.01%) ⬆️
sphinx/__init__.py 57.5% <0%> (-2.5%) ⬇️
sphinx/writers/latex.py 87.93% <0%> (-0.07%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5433d5c...5ef8da5. Read the comment docs.

Copy link
Member

@shimizukawa shimizukawa left a comment

Choose a reason for hiding this comment

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

LGTM

@tk0miya
Copy link
Member Author

tk0miya commented Apr 14, 2018

@shimizukawa Thank you for reviewing!

@tk0miya tk0miya merged commit 00bdea2 into sphinx-doc:1.7 Apr 14, 2018
@tk0miya tk0miya deleted the 4784_latex_show_urls_and_substitutions branch April 14, 2018 06:44
tk0miya added a commit to tk0miya/sphinx that referenced this pull request Apr 14, 2018
tk0miya added a commit to tk0miya/sphinx that referenced this pull request Apr 14, 2018
tk0miya added a commit that referenced this pull request Apr 21, 2018
…rom_doctree

Remove substitution_definition nodes from doctree on reading phase (refs: #4827)
brechtm added a commit to brechtm/sphinx that referenced this pull request Sep 8, 2020
SubstitutionDefinitionsRemover is now a SphinxPostTransform, only
applied in the Sphinx builder, as was originally the case (see sphinx-doc#4827).
brechtm added a commit to brechtm/sphinx that referenced this pull request Sep 8, 2020
SubstitutionDefinitionsRemover is now a SphinxPostTransform, only
applied in the Sphinx builder, as was originally the case (see sphinx-doc#4827).
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants