]> git.lyx.org Git - features.git/commitdiff
* LyXRC.cpp:
authorJürgen Spitzmüller <spitz@lyx.org>
Sun, 6 Sep 2009 16:06:50 +0000 (16:06 +0000)
committerJürgen Spitzmüller <spitz@lyx.org>
Sun, 6 Sep 2009 16:06:50 +0000 (16:06 +0000)
- support blanks in viewer_alternatives command.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31315 a592a061-630c-0410-9148-cb99ea01b6c8

src/LyXRC.cpp

index 438714cfe39d2b113bc85ba1dc8d12c6b1d01ed3..1d9b11054ba89d94d45e5229410503fb323de84d 100644 (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;
                }