The following code produces a bit of text where the first line is not aligned with respect to the second line, i.e. the word 'city' and the horizontal line are not indented by the same distance.
I want to align the first line to the second, without changing the indentation of the second line, since this bit is contained in a custom package and I want to change as little as possible inside the package.
\documentclass{amsbook}
\usepackage[utf8]{inputenc}
\usepackage{tabularx}
\begin{document}
\begin{figure}[b]
City, June 6, 2022
\vspace{2em}
\begin{tabularx}{\linewidth}{@{}XX@{}}
\hrule&\\
John Cena & \\
\end{tabularx}
\end{figure}
\end{document}
\flushleft
(or\raggedright
) right after\begin{figure}[b]
.\raggedright
(\flushleft
is just the internal start form of\begin{flushleft}
and shouldn't be used on its own) (but yes:-)amsbook
applies\centering
to floats soCity
is not "indented", just the whole line is centred,