terrasync.py: fix a small formatting issue with --report
Remove unneeded blank lines between listed files or dirs when using --report.
This commit is contained in:
parent
c30298ffce
commit
cb6b267430
1 changed files with 2 additions and 2 deletions
|
@ -374,8 +374,8 @@ class Report:
|
|||
for heading, setOfFilesOrDirs in reportElements:
|
||||
if setOfFilesOrDirs:
|
||||
l.append(heading + ":\n")
|
||||
l.extend( (" " + str(f) + '\n'
|
||||
for f in sorted(setOfFilesOrDirs)) )
|
||||
l.extend( (" " + str(f) for f in sorted(setOfFilesOrDirs)) )
|
||||
l.append('') # ensure a blank line follows the list
|
||||
else:
|
||||
l.append(heading + ": none")
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue