mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
Fix bug #7214 as best we can. The point here is that we only
want to add the \clearpage if the class has chapters. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37266 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
924ac8a5a1
commit
06ee6bde14
@ -1978,10 +1978,17 @@ def revert_diagram(document):
|
||||
# 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:
|
||||
|
Loading…
Reference in New Issue
Block a user