# Copyright 2006 Andrey Golovizin
#
# This file is part of pybtex.
#
# pybtex is free software; you can redistribute it and/or modify
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.
#
# pybtex is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with rdiff-backup; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
# USA

"""name formatting styles
"""

from pybtex.utils import abbreviate
from pybtex.richtext import Phrase

def plain(person, abbr=False):
    s = Phrase(sep=' ')
    s.append(person.first(abbr))
    s.append(person.middle(abbr))
    s.append(person.prelast())
    s.append(person.last())
    s.append(person.lineage())
    return s

@@ -849,16 +849,24 @@
 t Phrase
+, Symbol
 %0A%0Adef pl
@@ -975,24 +975,51 @@
 middle(abbr)
+, sep_before=Symbol('nbsp')
 )%0A    s.appe

insert non-breaking space between first and middle name