Endnotes improvment, see issue 4997 & 4998.

svn: r17809
This commit is contained in:
Peter Landgren
2011-06-19 11:47:22 +00:00
parent 8d71cee996
commit 4750ab4816
9 changed files with 83 additions and 152 deletions

View File

@ -257,7 +257,7 @@ class AsciiDoc(BaseDoc,TextDoc):
this_text = reformat_para(self.text,regular_indent,right,fmt,
right_pad,first_indent)
else:
this_text = self.text
this_text = ' '*(regular_indent+first_indent) + self.text
if self.__note_format:
# don't add an extra LF before the_pad if preformatted notes.
@ -404,15 +404,6 @@ class AsciiDoc(BaseDoc,TextDoc):
self.write_text(line)
self.end_paragraph()
def write_endnotes_ref(self, text, style_name, links=False):
"""
Overwrite base method for lines of endnotes references
"""
for line in text.split('\n'):
self.start_paragraph(style_name)
self.write_text(line)
self.end_paragraph()
#--------------------------------------------------------------------
#
# Writes text.