]> git.lyx.org Git - features.git/commitdiff
Fix ticket #6634: LyX should pass the "noae" option to Sweave.sty
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 1 Apr 2010 21:34:22 +0000 (21:34 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 1 Apr 2010 21:34:22 +0000 (21:34 +0000)
We pass it as a global document option.

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

lib/layouts/sweave.module
src/TextClass.cpp

index 79d830359ea88f86ed06796cfdfd600b0c87ed77..891fd14db49768ddddcfbf56ee1080fb12759a72 100644 (file)
 #   the size of produced plots.
 
 Format 26
-OutputType              literate
+OutputType             literate
 OutputFormat           sweave
 
+ClassOptions
+       Other          "noae"
+End
+
 Style Chunk
        Category              Sweave
        LatexType             Paragraph
index 6bc0bc0c8e65aded738618c509014955e8c4588b..7e9c206a9cf03e6867e6b92743f57e5a89c0adf7 100644 (file)
@@ -837,7 +837,10 @@ void TextClass::readClassOptions(Lexer & lexrc)
                        break;
                case CO_OTHER:
                        lexrc.next();
-                       options_ = lexrc.getString();
+                       if (options_.empty())
+                               options_ = lexrc.getString();
+                       else
+                               options_ += ',' + lexrc.getString();
                        break;
                case CO_HEADER:
                        lexrc.next();