def footnote_item(self, key, text):
back = (<EOL>'<STR_LIT>'<EOL>) % escape(key)<EOL>text = text.rstrip()<EOL>if text.endswith('<STR_LIT>'):<EOL><INDENT>text = re.sub(r'<STR_LIT>', r'<STR_LIT>' % back, text)<EOL><DEDENT>else:<EOL><INDENT>text = '<STR_LIT>' % (text, back)<EOL><DEDENT>html = '<STR_LIT>' % (escape(key), text)<EOL>return html<EOL>
Rendering a footnote item.

        :param key: identity key for the footnote.
        :param text: text content of the footnote.