X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=implode.py;h=2dc163fc71095c2e1b971ed2523a3ebef1df37b5;hb=dfec6899ef2a121ccf2ff1d47008e7ac4844cf70;hp=0513416546fd2b064cfc14df138368b6af9a13e5;hpb=e6123839d20de4f903ed74820cc087fc8401f625;p=ardour-manual diff --git a/implode.py b/implode.py index 0513416..2dc163f 100755 --- a/implode.py +++ b/implode.py @@ -137,7 +137,10 @@ for line in master: while fromFile.readline().startswith('---') == False: pass - shutil.copyfileobj(fromFile, implode) +# shutil.copyfileobj(fromFile, implode) + # Strip trailing newlines from content... + tempContent = fromFile.read().rstrip('\r\n') + implode.write(tempContent + '\n') fromFile.close() delList.append(inclFile)