changeset 29:1f73db82f2d7

crecord: remove preceding separating line if header is folded
author Mark Edgington <edgimar@gmail.com>
date Tue, 16 Dec 2008 12:07:12 +0100
parents dae9f14bcbb9
children 0b15487ead31
files crecord.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/crecord.py
+++ b/crecord.py
@@ -1128,7 +1128,7 @@
         text = header.prettyStr()
         chunkIndex = self.chunkList.index(header)
 
-        if chunkIndex != 0:
+        if chunkIndex != 0 and not header.folded:
             # add separating line before headers
             outStr += self.printString(self.chunkpad, '_'*self.xScreenSize, toWin=toWin)
         # select color-pair based on if the header is selected