From 1cbc09c75afbde3dfedfcd5dd7da309ddebb2ba1 Mon Sep 17 00:00:00 2001 From: Stefano Kowalke Date: Fri, 13 Nov 2015 09:29:38 +0100 Subject: [PATCH] Dont print the pipe for non-used social informations When I am not using one of the social informations (e.g. mobile), the pipe sign (|) will be print anyway. So I get something like this | mail@mail.org | . With this patch the pipe will only print when the social information is actually used. --- awesome-cv.cls | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/awesome-cv.cls b/awesome-cv.cls index e1511cd..1bc1774 100644 --- a/awesome-cv.cls +++ b/awesome-cv.cls @@ -313,19 +313,20 @@ \vspace{-0.5mm} \headersocialstyle{ \ifthenelse{\isundefined{\@mobile}} - {}{\faMobile\ \@mobile} - \quad\textbar\quad + {} + {\faMobile\ \@mobile \quad\textbar\quad} \ifthenelse{\isundefined{\@email}} - {}{\href{mailto:\@email}{\faEnvelope\ \@email}} - \quad\textbar\quad + {} + {\href{mailto:\@email}{\faEnvelope\ \@email} \quad\textbar\quad} \ifthenelse{\isundefined{\@homepage}} - {}{\href{http://\@homepage}{\faHome\ \@homepage}} - \quad\textbar\quad + {} + {\href{http://\@homepage}{\faHome\ \@homepage} \quad\textbar\quad} \ifthenelse{\isundefined{\@github}} - {}{\href{http://github.com/\@github}{\faGithubSquare\ \@github}} - \quad\textbar\quad + {} + {\href{http://github.com/\@github}{\faGithubSquare\ \@github} \quad\textbar\quad} \ifthenelse{\isundefined{\@linkedin}} - {}{\href{http://www.linkedin.com/in/\@linkedin}{\faLinkedinSquare\ \@linkedin}} + {} + {\href{http://www.linkedin.com/in/\@linkedin}{\faLinkedinSquare\ \@linkedin}} } \\ \end{center} }