an authorname in a bibtexfile maybe "H.\ Voss", to get a
normal space between the dot and the family name. This
patch strips these spaces for the view in the citation-gui,
ahich shows "\ Voss" (as string) in this case.

Herbert


-- 
http://www.lyx.org/help/
Index: src/frontends/controllers/ChangeLog
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/frontends/controllers/ChangeLog,v
retrieving revision 1.159
diff -u -r1.159 ChangeLog
--- src/frontends/controllers/ChangeLog 12 Apr 2002 15:25:11 -0000      1.159
+++ src/frontends/controllers/ChangeLog 14 Apr 2002 10:02:00 -0000
@@ -1,3 +1,8 @@
+2002-04-14  Herbert Voss  <[EMAIL PROTECTED]>
+
+       * biblio.C: fix bug in familyName, when a LaTeX space "\x" was
+       used in the bibdata
+
 2002-04-11  Herbert Voss  <[EMAIL PROTECTED]>
 
        * ControlGraphics.C: expand "browse-string" to all available formats
Index: src/frontends/controllers/biblio.C
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/frontends/controllers/biblio.C,v
retrieving revision 1.21
diff -u -r1.21 biblio.C
--- src/frontends/controllers/biblio.C  21 Mar 2002 21:21:28 -0000      1.21
+++ src/frontends/controllers/biblio.C  14 Apr 2002 10:02:00 -0000
@@ -158,6 +158,9 @@
        idx = fname.rfind(".");
        if (idx != string::npos)
                fname = frontStrip(fname.substr(idx+1));
+       // test if we have a LaTeX Space in front
+       if (fname[0] == '\\')
+               return fname.substr(2);
 
        return fname;
 }

Reply via email to