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
This commit is contained in:
Jean-Marc Lasgouttes 2005-04-27 15:53:09 +00:00
parent 667b46d4ec
commit f8d127b3e9
3 changed files with 8 additions and 2 deletions

View File

@ -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: "

View File

@ -1,3 +1,8 @@
2005-04-27 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
* lyxlayout.C (Read): transform underscores to spaces in CopyStyle
argument.
2005-04-17 Angus Leeming <leeming@lyx.org>
* buffer.C (makeLaTeXFile): replace code to manipulate a path

View File

@ -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_;