Skip to content

Commit

Permalink
Trim some EOL whitespace in CHANGES and sphinxpackagefootnote.sty
Browse files Browse the repository at this point in the history
  • Loading branch information
jfbu committed Feb 15, 2022
1 parent 8e6f30f commit cb73d16
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions CHANGES
Expand Up @@ -35,10 +35,10 @@ Bugs fixed
* #9924: LaTeX: multi-line :rst:dir:`cpp:function` directive has big vertical
spacing in Latexpdf
* #10158: LaTeX: excessive whitespace since v4.4.0 for undocumented
variables/structure members
variables/structure members
* #10175: LaTeX: named footnote reference is linked to an incorrect footnote if
the name is also used in the different document
* #10188: LaTeX: alternating multiply referred footnotes produce a ``?`` in
* #10188: LaTeX: alternating multiply referred footnotes produce a ``?`` in
pdf output
* #10181: napoleon: attributes are displayed like class attributes for google
style docstrings when :confval:`napoleon_use_ivar` is enabled
Expand Down
8 changes: 4 additions & 4 deletions sphinx/texinputs/sphinxpackagefootnote.sty
Expand Up @@ -12,7 +12,7 @@
% - "savenotes" environment for wrapping environments, such as for tables
% which have problems with LaTeX footnotes
% - hyperlinks
%
%
% Sphinx uses exclusively this mark-up for footnotes:
% - \begin{footnote}[N]
% - \begin{footnotetext}[N]
Expand Down Expand Up @@ -192,15 +192,15 @@
\unrestored@protected@xdef\@thefnmark{\thempfn}%
\endgroup
% -- Sphinx specific:
% currently commented out due to
% currently commented out due to
% https://github.com/sphinx-doc/sphinx/pull/10191#issuecomment-1038807448
% Memo: memoir class detection of successive footnote marks (to separate them
% by commas) is broken by \refstepcounter and also by \label, and some
% mitigation such as in \sphinxfootref would be needed
% \global\let\spx@saved@thefnmark\@thefnmark
% % this is done to access robustly the page number where footnote mark is
% \refstepcounter{sphinxfootnotemark}\label{footnotemark.\thesphinxfootnotemark}%
% % if possible, compare page numbers of mark and footnote to define \@thefnmark
% % if possible, compare page numbers of mark and footnote to define \@thefnmark
% \ltx@ifundefined{r@\thesphinxscope.footnote.#1}%
% {}% one more latex run is needed
% {\sphinx@xdef@thefnmark{#1}}% check of page numbers possible
Expand Down Expand Up @@ -418,7 +418,7 @@
}%
\H@@footnotemark
\let\@makefnmark\spx@saved@makefnmark
}%
}%
\AtBeginDocument{%
% let hyperref less complain
\pdfstringdefDisableCommands{\def\sphinxfootnotemark [#1]{}}%
Expand Down

0 comments on commit cb73d16

Please sign in to comment.