6128: Reverse bug fix keeping code refactor

svn: r21576
This commit is contained in:
Nick Hall
2013-03-07 22:54:58 +00:00
parent 3cba0f2089
commit c861968fd3
4 changed files with 21 additions and 38 deletions

View File

@@ -34,4 +34,4 @@ from ._bibliography import Bibliography, Citation
from ._options import MenuReportOptions, ReportOptions, DocOptions
from ._book import BookList, Book, BookItem, create_style_sheet
from ._book import BookList, Book, BookItem, append_styles

View File

@@ -449,12 +449,10 @@ class BookParser(handler.ContentHandler):
# Functions
#
#-------------------------------------------------------------------------
def create_style_sheet(item, previous_style=None):
def append_styles(selected_style, item):
"""
Create a style sheet for a book item, appending any previous_style.
Append the styles for a book item to the stylesheet.
"""
selected_style = StyleSheet(previous_style)
handler = item.option_class.handler
# Set up default style
@@ -490,5 +488,3 @@ def create_style_sheet(item, previous_style=None):
selected_style.add_cell_style(
this_style_name,
style_sheet.get_cell_style(this_style_name))
return selected_style