# StGIT 0.14.3: extra space is added before e-mail on export after "stg edit"

3 messages from 2008-10-15 to 2008-10-19. Participants: Andrey Borzenkov, Catalin Marinas.
Thread: https://gitlist.dev/t/15914

## Andrey Borzenkov, 2008-10-15 16:25

Subject: StGIT 0.14.3: extra space is added before e-mail on export after "stg edit"
Message-ID: <200810152025.19995.arvidjaar@mail.ru>
URL: https://gitlist.dev/e/200810152025.19995.arvidjaar%40mail.ru

```
Hi,

Funny problem. I have following export template:

Subject: [PATCH] %(shortdescr)s
From: %(authname)s %(authemail)s

%(longdescr)s
Signed-off-by: %(authname)s %(authemail)s

---

%(diffstat)s

So after "stg new", edit, "stg refres" (and any number of "stg refresh"es)
it exports OK. But once I did "stg edit patch", all subsequent "stg export patch"
will give (assuming author is me@foo.net):

From: My Name < me@foo.net>
...
Signed-off-by: My Name < me@foo.net>

Notice extra space between "<" and e-mail.

TIA

-andrey

```

## Catalin Marinas, 2008-10-18 08:48

Subject: Re: StGIT 0.14.3: extra space is added before e-mail on export after "stg edit"
Message-ID: <b0943d9e0810180148k4ba5bb2bgf3c5cdb2358b9419@mail.gmail.com>
URL: https://gitlist.dev/e/b0943d9e0810180148k4ba5bb2bgf3c5cdb2358b9419%40mail.gmail.com
In-Reply-To: <200810152025.19995.arvidjaar@mail.ru>

```
2008/10/15 Andrey Borzenkov <arvidjaar@mail.ru>:
> Funny problem. I have following export template:
>
> Subject: [PATCH] %(shortdescr)s
> From: %(authname)s %(authemail)s
>
> %(longdescr)s
> Signed-off-by: %(authname)s %(authemail)s

The default templates contain "%(authname)s <%(authemail)s>", i.e.
with the angle brackets arount authemail and I've never seen this
problem. Does it work if you change them (or use the default
templates)?

-- 
Catalin

```

## Andrey Borzenkov, 2008-10-19 08:09

Subject: Re: StGIT 0.14.3: extra space is added before e-mail on export after "stg edit"
Message-ID: <200810191209.14597.arvidjaar@mail.ru>
URL: https://gitlist.dev/e/200810191209.14597.arvidjaar%40mail.ru
In-Reply-To: <b0943d9e0810180148k4ba5bb2bgf3c5cdb2358b9419@mail.gmail.com>

```
On Saturday 18 October 2008, Catalin Marinas wrote:
> 2008/10/15 Andrey Borzenkov <arvidjaar@mail.ru>:
> > Funny problem. I have following export template:
> >
> > Subject: [PATCH] %(shortdescr)s
> > From: %(authname)s %(authemail)s
> >
> > %(longdescr)s
> > Signed-off-by: %(authname)s %(authemail)s
> 
> The default templates contain "%(authname)s <%(authemail)s>", i.e.
> with the angle brackets arount authemail and I've never seen this
> problem. Does it work if you change them (or use the default
> templates)?
> 

Well, my GIT_AUTHOR_EMAIL was with angle brackets. I do not remember, why
(apparently I had some issues in the past). I stripped brackets and changed
template, now it seems to work. I was never sure what exactly e-mail should
like like.

Thank you!

```
