From b8fb599130b118e3f881e3a9d6df6285a2bc44a9 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Thu, 1 Apr 2010 21:34:22 +0000 Subject: [PATCH] Fix ticket #6634: LyX should pass the "noae" option to Sweave.sty 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 | 6 +++++- src/TextClass.cpp | 5 ++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/lib/layouts/sweave.module b/lib/layouts/sweave.module index 79d830359e..891fd14db4 100644 --- a/lib/layouts/sweave.module +++ b/lib/layouts/sweave.module @@ -11,9 +11,13 @@ # the size of produced plots. Format 26 -OutputType literate +OutputType literate OutputFormat sweave +ClassOptions + Other "noae" +End + Style Chunk Category Sweave LatexType Paragraph diff --git a/src/TextClass.cpp b/src/TextClass.cpp index 6bc0bc0c8e..7e9c206a9c 100644 --- a/src/TextClass.cpp +++ b/src/TextClass.cpp @@ -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(); -- 2.39.2