I'm using this solution to automatically add a period at the end of every footnote; the code should insert a period only if the footnote does not already end with a period, a question mark or a bang.
However, one too much period is added when I use citestyle=authoryear-ibid in biblatex (with authoryear-ibid "immediately repeated citations are replaced by the abbreviation ‘"Ibid.’").
MWE:
\documentclass{book}
\usepackage[
style=chicago-authordate,
citestyle=authoryear-ibid,
ibidpage=true,
]{biblatex}
\addbibresource{bibliografia.bib}
% This macro inserts a period only if the footnote does not end with a period, a question mark or a bang
\makeatletter%
\long\def@makefntext#1{%
\parindent 1em\noindent \hb@xt@ 1.8em{\hss@makefnmark}#1%
\ifnum\the\spacefactor<3000.\fi}
\makeatother
\begin{document}
This works \footcite{Gomme1956}
Here one too many period is added \footcite{Gomme1956}
\end{document}
How can I avoid that one too much period is added?


\footnote. – Urel Apr 26 '21 at 19:30