>>>>> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes:

| You mean I'm supposed to do it? Bummer.

Lars> Yes please :-)

OK, first it seems that there was a reason why we used the quote
syntax in CopyStyle. And I forgot one entry.

Committing shortly.

JMarc

Index: lib/layouts/llncs.layout
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/lib/layouts/llncs.layout,v
retrieving revision 1.5.2.4
diff -u -p -r1.5.2.4 llncs.layout
--- lib/layouts/llncs.layout	27 Apr 2005 15:23:55 -0000	1.5.2.4
+++ lib/layouts/llncs.layout	27 Apr 2005 15:50:52 -0000
@@ -215,7 +215,7 @@ End
 
 # AuthorRunning style definition
 Style Author_Running
-  CopyStyle		Running LaTeX_Title
+  CopyStyle		Running_LaTeX_Title
   LatexName		authorrunning
   LeftMargin		"Author Running:xxx"
   LabelString		"Author Running: "
Index: src/ChangeLog
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/ChangeLog,v
retrieving revision 1.1021.2.79
diff -u -p -r1.1021.2.79 ChangeLog
--- src/ChangeLog	18 Apr 2005 17:43:59 -0000	1.1021.2.79
+++ src/ChangeLog	27 Apr 2005 15:50:53 -0000
@@ -1,3 +1,8 @@
+2005-04-27  Jean-Marc Lasgouttes  <[EMAIL PROTECTED]>
+
+	* lyxlayout.C (Read): transform underscores to spaces in CopyStyle
+	argument. 
+
 2005-04-17  Angus Leeming  <[EMAIL PROTECTED]>
 
 	* buffer.C (makeLaTeXFile): replace code to manipulate a path
Index: src/lyxlayout.C
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/lyxlayout.C,v
retrieving revision 1.10.2.1
diff -u -p -r1.10.2.1 lyxlayout.C
--- src/lyxlayout.C	7 Dec 2004 10:48:36 -0000	1.10.2.1
+++ src/lyxlayout.C	27 Apr 2005 15:50:53 -0000
@@ -180,7 +180,8 @@ bool LyXLayout::Read (LyXLex & lexrc, Ly
 
 		case LT_COPYSTYLE:     // initialize with a known style
 			if (lexrc.next()) {
-				string const style = lexrc.getString();
+				string const style = subst(lexrc.getString(),
+							  '_', ' ');
 
 				if (tclass.hasLayout(style)) {
 					string const tmpname = name_;

Reply via email to