mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Remove unneeded \phantomsection (refs: review comment of #3064)
This commit is contained in:
parent
6e5964ac27
commit
aa06495b61
@ -91,7 +91,6 @@
|
|||||||
% For an article document class this environment is a section,
|
% For an article document class this environment is a section,
|
||||||
% so no page break before it.
|
% so no page break before it.
|
||||||
\newenvironment{sphinxthebibliography}[1]{%
|
\newenvironment{sphinxthebibliography}[1]{%
|
||||||
\phantomsection
|
|
||||||
\begin{thebibliography}{\detokenize{#1}}%
|
\begin{thebibliography}{\detokenize{#1}}%
|
||||||
\addcontentsline{toc}{section}{\bibname}}{\end{thebibliography}}
|
\addcontentsline{toc}{section}{\bibname}}{\end{thebibliography}}
|
||||||
|
|
||||||
|
@ -109,7 +109,6 @@
|
|||||||
% For a report document class this environment is a chapter.
|
% For a report document class this environment is a chapter.
|
||||||
\newenvironment{sphinxthebibliography}[1]{%
|
\newenvironment{sphinxthebibliography}[1]{%
|
||||||
\if@openright\cleardoublepage\else\clearpage\fi
|
\if@openright\cleardoublepage\else\clearpage\fi
|
||||||
\phantomsection
|
|
||||||
\begin{thebibliography}{\detokenize{#1}}%
|
\begin{thebibliography}{\detokenize{#1}}%
|
||||||
\addcontentsline{toc}{chapter}{\bibname}}{\end{thebibliography}}
|
\addcontentsline{toc}{chapter}{\bibname}}{\end{thebibliography}}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user