def __init__(self, formatting_info=0, ragged_rows=False, ): Book.__init__(self) self.ragged_rows = ragged_rows self.formatting_info=formatting_info self.initialise_format_info() if formatting_info: f = Font() self.font_list.append(f) self.format_map[0]= Format(0,FUN,u'General') xf = XF() xf.alignment = XFAlignment() xf.border = XFBorder() xf.background = XFBackground() xf.protection = XFProtection() self.xf_list.append(xf)