From 6dd9fd8c447635304e63c421f90eef67a9b9678f Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Sat, 9 Apr 2011 22:56:47 -0400 Subject: [PATCH] BF: while formatting long description ignore empty blocks --- neurodebian/dde.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neurodebian/dde.py b/neurodebian/dde.py index 1dad430..479e96a 100755 --- a/neurodebian/dde.py +++ b/neurodebian/dde.py @@ -651,7 +651,7 @@ def convert_longdescr(ld): if len(blocks) == 1: return blocks[0] else: - return [block_lines(b, level+1) for b in blocks] + return [block_lines(b, level+1) for b in blocks if len(b)] def blocks_to_rst(bls, level=0): # check if this block is an itemized beast -- 2.39.5