From a1c96c8a935dc9be4b1b5cc033c2d19cdef29e96 Mon Sep 17 00:00:00 2001 From: Nick Hall Date: Thu, 13 May 2010 17:12:18 +0000 Subject: [PATCH] Append space to paragraph leader in ascii reports. (revert 15388) svn: r15404 --- src/plugins/docgen/AsciiDoc.py | 1 + src/plugins/textreport/DescendReport.py | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/plugins/docgen/AsciiDoc.py b/src/plugins/docgen/AsciiDoc.py index 518cea7ca..366025be2 100644 --- a/src/plugins/docgen/AsciiDoc.py +++ b/src/plugins/docgen/AsciiDoc.py @@ -236,6 +236,7 @@ class AsciiDoc(BaseDoc,TextDoc): # Then add leader and eat up the beginning of the first line pad. # Do not reformat if preformatted notes if not self.__note_format: + self.leader += ' ' start_at = regular_indent + min(len(self.leader)+first_indent,0) this_text = reformat_para(self.text,regular_indent,right,fmt, right_pad) diff --git a/src/plugins/textreport/DescendReport.py b/src/plugins/textreport/DescendReport.py index a70a90596..4879e5d27 100644 --- a/src/plugins/textreport/DescendReport.py +++ b/src/plugins/textreport/DescendReport.py @@ -61,7 +61,7 @@ from gen.utils import get_birth_or_fallback, get_death_or_fallback #------------------------------------------------------------------------ class PrintSimple(): def number(self, level): - return "%d. " % level + return "%d." % level #------------------------------------------------------------------------ @@ -79,7 +79,7 @@ class PrintVilliers(): to_return = self.pama[level-1] if level > 1: to_return += str(self.num[level-1]) - to_return += ". " + to_return += "." self.num[level] = 1 self.num[level-1] = self.num[level-1] + 1 @@ -106,7 +106,7 @@ class PrintMeurgey(): self.childnum.append(1) to_return = ReportUtils.roman(level) + dash + \ - str(self.childnum[level-1]) + ". " + str(self.childnum[level-1]) + "." if level > 1: self.childnum[level-1] += 1