diff --git a/ChangeLog b/ChangeLog index 627e8b653..e13056de5 100644 --- a/ChangeLog +++ b/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/src/docgen/AsciiDoc.py b/src/docgen/AsciiDoc.py index f4924e6b5..6f6b54200 100644 --- a/src/docgen/AsciiDoc.py +++ b/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 = []