From c9e6a13a3d552ad9f2ce8703351d9e69a5a6d2e5 Mon Sep 17 00:00:00 2001 From: Alex Roitman Date: Tue, 21 Dec 2004 17:04:52 +0000 Subject: [PATCH] * src/docgen/AsciiDoc.py (reformat_para): Correctly check for empty paragraph. svn: r3825 --- gramps2/ChangeLog | 4 ++++ gramps2/src/docgen/AsciiDoc.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index 627e8b653..e13056de5 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,3 +1,7 @@ +2004-12-21 Alex Roitman + * src/docgen/AsciiDoc.py (reformat_para): Correctly check for + empty paragraph. + 2004-12-19 Don Allingham * src/DbPrompter.py: Add display messages during load * src/GrampsBSDDB.py: Add display messages during load diff --git a/gramps2/src/docgen/AsciiDoc.py b/gramps2/src/docgen/AsciiDoc.py index f4924e6b5..6f6b54200 100644 --- a/gramps2/src/docgen/AsciiDoc.py +++ b/gramps2/src/docgen/AsciiDoc.py @@ -53,7 +53,7 @@ _WIDTH_IN_CHARS = 72 # #------------------------------------------------------------------------ def reformat_para(para='',left=0,right=72,just=LEFT,right_pad=0): - if not para: + if not para.strip(): return "\n" words = para.split() lines = []