From: Jürgen Spitzmüller Date: Sun, 6 Sep 2009 16:06:50 +0000 (+0000) Subject: * LyXRC.cpp: X-Git-Tag: 2.0.0~5532 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=b21794071fe0c8abfad4d2ca7d1d46028e9b169a;p=features.git * 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 --- diff --git a/src/LyXRC.cpp b/src/LyXRC.cpp index 438714cfe3..1d9b11054b 100644 --- a/src/LyXRC.cpp +++ b/src/LyXRC.cpp @@ -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; }