From 03df20ccab44dfd130041c7ee9ac71c956759360 Mon Sep 17 00:00:00 2001 From: Oliver Ford Date: Thu, 27 Jul 2023 23:06:27 +0100 Subject: [PATCH] Format \@teluri in one place --- awesome-cv.cls | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/awesome-cv.cls b/awesome-cv.cls index 6bff62f..496a8c3 100644 --- a/awesome-cv.cls +++ b/awesome-cv.cls @@ -290,6 +290,11 @@ { \def\@mobile{#1} \def\@teluri{tel:\@mobile} + % Strip unwanted characters + \StrDel{\@teluri}{ }[\@teluri]% + \StrDel{\@teluri}{-}[\@teluri]% + \StrDel{\@teluri}{(}[\@teluri]% + \StrDel{\@teluri}{)}[\@teluri]% } % Defines writer's email (optional) @@ -423,11 +428,6 @@ \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}% \setbool{isstart}{false}% }%