In the following example I am using \raggedleft
which is supposed to align the text to the right. However it doesn't work.
\documentclass{article}
\usepackage{qrcode}
\def\commit{abcdef}
\def\commiturl{https://acme.org/}
\begin{document}
{
\raggedleft\commit\quad\qrcode{\commiturl}
}
\end{document}
What is my mistake?
\raggedleft
with}
before it was used (this is unrelated to qrcode) leave a blank line before}
(or use\begin{flushleft}..\end{flushleft}