From: Yaroslav Halchenko Date: Sun, 10 Apr 2011 02:56:47 +0000 (-0400) Subject: BF: while formatting long description ignore empty blocks X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=6dd9fd8c447635304e63c421f90eef67a9b9678f;p=neurodebian.git BF: while formatting long description ignore empty blocks --- 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