Format \@teluri in one place

This commit is contained in:
Oliver Ford 2023-07-27 23:06:27 +01:00
parent 9d66734e3b
commit 03df20ccab
No known key found for this signature in database
GPG key ID: 15CCFACF010F70D2

View file

@ -290,6 +290,11 @@
{ {
\def\@mobile{#1} \def\@mobile{#1}
\def\@teluri{tel:\@mobile} \def\@teluri{tel:\@mobile}
% Strip unwanted characters
\StrDel{\@teluri}{ }[\@teluri]%
\StrDel{\@teluri}{-}[\@teluri]%
\StrDel{\@teluri}{(}[\@teluri]%
\StrDel{\@teluri}{)}[\@teluri]%
} }
% Defines writer's email (optional) % Defines writer's email (optional)
@ -423,11 +428,6 @@
\ifthenelse{\isundefined{\@mobile}}% \ifthenelse{\isundefined{\@mobile}}%
{}% {}%
{% {%
% Formats phone number for "tel:" URI
\StrDel{\@teluri}{ }[\@teluri]%
\StrDel{\@teluri}{-}[\@teluri]%
\StrDel{\@teluri}{(}[\@teluri]%
\StrDel{\@teluri}{)}[\@teluri]%
\href{\@teluri}{\faMobile\acvHeaderIconSep\@mobile}% \href{\@teluri}{\faMobile\acvHeaderIconSep\@mobile}%
\setbool{isstart}{false}% \setbool{isstart}{false}%
}% }%