* src/docgen/AsciiDoc.py (reformat_para): Correctly check for

empty paragraph.


svn: r3825
This commit is contained in:
Alex Roitman
2004-12-21 17:04:52 +00:00
parent 224bef8af3
commit 4dd9d443e2
2 changed files with 5 additions and 1 deletions

View File

@@ -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 = []