# moderncv class: prevent indentation in address section after making it left-justified

I am using the moderncv class (http://www.ctan.org/pkg/moderncv) to write my CV. In order to modify the address section, I modified moderncvstyleclassic.sty.

I want to get the text of the address section left-justified (which worked), but now I have the problem that the first line of the address (addressstreet) is indented.

My question is: How do I prevent this indentation of the first line within this information box

So far I did not find any solutions for this problem.

Code in moderncvstyleclassic.sty with my change commented:

%% code above omitted
% optional detailed information box
\newbox{\makecvtitledetailsbox}%
\savebox{\makecvtitledetailsbox}{%
\begin{tabular}[b]{@{}l@{}}%% MY MODIFICATION <<-- l for left-justified (instead of "r")
\ifthenelse{\isundefined{\@countryinfo}}{}{\makenewline\@countryinfo}%%##moved up to use as country
\ifthenelse{\isundefined{\@mobile}}{}{\makenewline\mobilesymbol\@mobile}%
\ifthenelse{\isundefined{\@phone}}{}{\makenewline\phonesymbol\@phone}%
\ifthenelse{\isundefined{\@fax}}{}{\makenewline\faxsymbol\@fax}%
\ifthenelse{\isundefined{\@homepage}}{}{%
\ifthenelse{\equal{\@homepagetitle}{}}% \homepagetitle could be empty
\ifthenelse{\isundefined{\@extrainfo}}{}{\makenewline\@extrainfo}%##moved up to use as country
\end{tabular}
}%
%% code below omitted


Using the \patchcmd macro:

\makeatletter
\patchcmd{\makecvtitle}{@{}r@{}}{@{}l@{}}{}{}
\makeatother


after the style declaration.

Before:

After:

Or if you want to manually edit the .sty file (discouraged) just change from:

\makenewline\addresssymbol\@addressstreet


to:

\addresssymbol\@addressstreet\makenewline


For also putting the extrainfo below city use the following set of commands instead of the previous:

\makeatletter
\patchcmd{\makecvtitle}{@{}r@{}}{@{}l@{}}{}{}
\patchcmd{\makecvtitle}{\makenewline\@extrainfo}{}{}{}
\makeatother


result:

the country field is optional, if you set the address like this:

\address{street and number}{postcode city}{country}


you'll have a country. Otherwise, like this:

\address{street and number}{postcode city}


you'll have no country (as in my last picture).

## Complete MWE

  \documentclass[11pt,a4paper,sans]{moderncv}
\moderncvstyle{classic}

\makeatletter
\patchcmd{\makecvtitle}{@{}r@{}}{@{}l@{}}{}{}
\patchcmd{\makecvtitle}{\makenewline\@extrainfo}{}{}{}
\makeatother

\moderncvcolor{blue}
\usepackage[scale=0.75]{geometry}

% personal data
\name{John}{Doe}
\title{Resumé title}
\phone[mobile]{+1~(234)~567~890}
\phone[fixed]{+2~(345)~678~901}
\phone[fax]{+3~(456)~789~012}
\email{john@doe.org}
\homepage{www.johndoe.com}
\social[github]{jdoe}
\photo[64pt][0.4pt]{picture}
\quote{Some quote}

\begin{document}
\makecvtitle

\section{Education}