editor = "emacs"
return editor
+### fold long lines
+fold_length=132
+
+def print_fold (line):
+ while len(line) >= fold_length:
+ print line[:fold_length],'\\'
+ line=line[fold_length:]
+ print line
+
class Command:
def __init__ (self,command,options):
self.command=command
def get_distrotags (self):
return [os.path.basename(p) for p in glob("%s/*tags*mk"%self.edge_dir())]
-
class Release:
# header in diff output
if line[0] in ['@']:
print '----------'
elif line[0] in ['+','-']:
- print line
+ print_fold(line)
print '}}}'
##############################