Author: rgheck
Date: Thu Jan 20 17:38:41 2011
New Revision: 37266
URL: http://www.lyx.org/trac/changeset/37266
Log:
Fix bug #7214 as best we can. The point here is that we only
want to add the \clearpage if the class has chapters.
Modified:
lyx-devel/trunk/lib/lyx2lyx/lyx_2_0.py
Modified: lyx-devel/trunk/lib/lyx2lyx/lyx_2_0.py
==============================================================================
--- lyx-devel/trunk/lib/lyx2lyx/lyx_2_0.py Thu Jan 20 17:28:42 2011
(r37265)
+++ lyx-devel/trunk/lib/lyx2lyx/lyx_2_0.py Thu Jan 20 17:38:41 2011
(r37266)
@@ -1978,10 +1978,17 @@
# only need to do it once!
return
+chapters = ("amsbook", "book", "docbook-book", "elsart", "extbook",
"extreport",
+ "jbook", "jreport", "jsbook", "literate-book", "literate-report",
"memoir",
+ "mwbk", "mwrep", "recipebook", "report", "scrbook", "scrreprt", "svmono",
+ "svmult", "tbook", "treport", "tufte-book")
def convert_bibtex_clearpage(document):
" insert a clear(double)page bibliographystyle if bibtotoc option is used "
+ if document.textclass not in chapters:
+ return
+
i = find_token(document.header, '\\papersides', 0)
sides = 0
if i == -1: