]> git.lyx.org Git - features.git/blobdiff - src/TextClass.cpp
Add proper extension as needed in Save as and Export
[features.git] / src / TextClass.cpp
index 9546cee9618fd2aa2ae17ea79f6329b554fd222d..3a131d9d8eb803254c42f60bedb546d6078f92fc 100644 (file)
@@ -59,7 +59,7 @@ namespace lyx {
 // You should also run the development/tools/updatelayouts.py script,
 // to update the format of all of our layout files.
 //
-int const LAYOUT_FORMAT = 94; // tcuvelier: DocBookFloatType, DocBookCaption
+int const LAYOUT_FORMAT = 95; // tcuvelier: DocBookRenderAsImage
 
 
 // Layout format for the current lyx file format. Controls which format is
@@ -691,7 +691,7 @@ TextClass::ReturnValues TextClass::read(Lexer & lexrc, ReadType rt)
                case TC_PKGOPTS : {
                        lexrc.next();
                        string const pkg = lexrc.getString();
-                       lexrc.next();
+                       lexrc.eatLine();
                        string const options = lexrc.getString();
                        package_options_[pkg] = options;
                        break;