* LyXRC.cpp:

- support blanks in viewer_alternatives command.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31315 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2009-09-06 16:06:50 +00:00
parent 37429e5e60
commit b21794071f

View File

@ -1036,7 +1036,10 @@ int LyXRC::read(Lexer & lexrc)
}
case RC_VIEWER_ALTERNATIVES: {
string format, command;
lexrc >> format >> command;
if (lexrc.next())
format = lexrc.getString();
if (lexrc.eatLine())
command = lexrc.getString();
viewer_alternatives.push_back(make_pair(format, command));
break;
}