commit 355f9a0efc9f90406c69aeab8c57220d0735154c
Author: Guillaume Munch <[email protected]>
Date: Fri Nov 13 18:40:10 2015 +0000
Remove trailing space at the end of \author
Checked that the change is compatible with lyx2lyx (relevant lines are in
lyx_2_0.py).
diff --git a/src/Author.cpp b/src/Author.cpp
index d44af3d..bd9d12d 100644
--- a/src/Author.cpp
+++ b/src/Author.cpp
@@ -64,8 +64,9 @@ bool operator==(Author const & l, Author const & r)
ostream & operator<<(ostream & os, Author const & a)
{
// FIXME UNICODE
- os << a.buffer_id_ << " \"" << to_utf8(a.name_)
- << "\" " << to_utf8(a.email_);
+ os << a.buffer_id_ << " \"" << to_utf8(a.name_) << "\"";
+ if (!a.email_.empty())
+ os << " " << to_utf8(a.email_);
return os;
}