def __init__(self, text, style, bulletText=None, caseSensitive=1, level=0, snum=None, parent_id=None, node=None, section_header_depth=2): # Issue 114: need to convert "&" to "&" and such. # Issue 140: need to make it plain text self.stext=re.sub(r'<[^>]*?>', '', unescape(text)) self.stext = self.stext.strip() self.level = int(level) self.snum = snum self.parent_id=parent_id self.node=node self.section_header_depth = section_header_depth Paragraph.__init__(self, text, style, bulletText)
def __init__(self, text, style, bulletText=None, caseSensitive=1, level=0, snum=None, parent_id=None, node=None, section_header_depth=2): # Issue 114: need to convert "&" to "&" and such. # Issue 140: need to make it plain text self.stext=re.sub(r'<[^>]*?>', '', unescape(text)) self.stext = self.stext.strip() self.level = int(level) self.snum = snum self.parent_id=parent_id self.node=node self.section_header_depth = section_header_depth Paragraph.__init__(self, text, style, bulletText)
def __init__(self, text, style, bulletText=None, caseSensitive=1, level=0, snum=None, parent_id=None, node=None): #if label is None: # it happens #self.label = text.replace(u'\xa0', ' ').strip( #).replace(' ', '-').encode('ascii', 'replace').lower() #else: #self.label = label.strip() # Issue 114: need to convert "&" to "&" and such. # Issue 140: need to make it plain text self.stext = re.sub(r'<[^>]*?>', '', unescape(text)) self.stext = self.stext.strip() self.level = int(level) self.snum = snum self.parent_id = parent_id self.node = node Paragraph.__init__(self, text, style, bulletText)