Unwanted space after footnote mark

I want to remove the small space after footnote mark (it especially visible before punctuation marks). MWE

\documentclass{article}
\begin{document}
Text\footnote{first}. Text\footnote{second} continues.
\end{document}


I've tested the negative kern, but the space is different depending on overall line space.

• Is it really a space? Text$^1$. gives bare-eye identical result. Of course you are always free to use \! to manually fix it. May 22 '19 at 21:47
• In publishing, it's traditional to place the footnote marker after the punctuation, at least if the punctuation is a period or comma. That avoids unsightly spacing. May 23 '19 at 0:53
• @barbarabeeton In “English typography”, yes, but not in French typography, at least. :-) May 23 '19 at 8:05
• @frougon -- Fair enough. Different languages (and locations) do have different traditions. Thanks for the clarification. May 23 '19 at 13:34
• @barbarabeeton in cyrillic typography we also place marker before punctuation (as in French). May 24 '19 at 10:14

That's exactly what fnpct is for:

\documentclass{article}
\usepackage{fnpct}
\setfnpct{punct-after}

\begin{document}

Text\footnote{first}. Text\footnote{second} continues.

\end{document}


or

\documentclass{article}
\usepackage{fnpct}

\begin{document}

Text\footnote{first}. Text\footnote{second} continues.

\end{document}


The amount of shifting is customizable.