From f8d127b3e9903cde86abc35a8f80bc4987f13225 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Wed, 27 Apr 2005 15:53:09 +0000 Subject: [PATCH] small errors in previous patch git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_3_X@9883 a592a061-630c-0410-9148-cb99ea01b6c8 --- lib/layouts/llncs.layout | 2 +- src/ChangeLog | 5 +++++ src/lyxlayout.C | 3 ++- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/lib/layouts/llncs.layout b/lib/layouts/llncs.layout index 3482af9ec6..8bf1c0a6b2 100644 --- a/lib/layouts/llncs.layout +++ b/lib/layouts/llncs.layout @@ -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: " diff --git a/src/ChangeLog b/src/ChangeLog index 146adc8cf3..9915f64e7b 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2005-04-27 Jean-Marc Lasgouttes + + * lyxlayout.C (Read): transform underscores to spaces in CopyStyle + argument. + 2005-04-17 Angus Leeming * buffer.C (makeLaTeXFile): replace code to manipulate a path diff --git a/src/lyxlayout.C b/src/lyxlayout.C index 6533fe3051..3e19768e1d 100644 --- a/src/lyxlayout.C +++ b/src/lyxlayout.C @@ -180,7 +180,8 @@ bool LyXLayout::Read (LyXLex & lexrc, LyXTextClass const & tclass) 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_;