app: Fix trailing space for Author.String()
This code initially landed with lots of space: '{name} <{email}> ' or: '{name} ' in3d718330
(app, help: add support for multiple authors, 2015-01-31). The doubled space between the name and email was removed inc6592bb4
(app, help: add backwards compatibility for Authors, 2015-02-21), but a trailing space remained in both the email and email-less cases. This commit removes that trailing space.
This commit is contained in:
parent
c4a46a7df2
commit
0c143a2a26
4
app.go
4
app.go
@ -458,10 +458,10 @@ type Author struct {
|
|||||||
func (a Author) String() string {
|
func (a Author) String() string {
|
||||||
e := ""
|
e := ""
|
||||||
if a.Email != "" {
|
if a.Email != "" {
|
||||||
e = "<" + a.Email + "> "
|
e = " <" + a.Email + ">"
|
||||||
}
|
}
|
||||||
|
|
||||||
return fmt.Sprintf("%v %v", a.Name, e)
|
return fmt.Sprintf("%v%v", a.Name, e)
|
||||||
}
|
}
|
||||||
|
|
||||||
// HandleAction uses ✧✧✧reflection✧✧✧ to figure out if the given Action is an
|
// HandleAction uses ✧✧✧reflection✧✧✧ to figure out if the given Action is an
|
||||||
|
Loading…
Reference in New Issue
Block a user