def add_to_xml(self, raw_str): footnote_parts = self.xml.split("</p></footnote>") self.xml = footnote_parts[0] + "</p>" + tag.p(raw_str) + "</footnote>"
def format_for_xml(self, raw_str): return "<footnote label=\"" + str( self.number) + "\">" + tag.p(raw_str) + "</footnote>"
def format_for_xml(self, plist): casetext_string = "" for p in plist: casetext_string += clean_xml(tag.p(p) + "\n") return casetext_string
def format_for_xml(self, hlist): headnotes_string = "" for h in hlist: headnotes_string += clean_xml(tag.p(process_xml(h)) + "\n") return headnotes_string
def format_for_html(self, raw_str): return tag.p(raw_str)