Bug#780667: wrap-and-sort: handling of empty lines in the install file etc.
Osamu Aoki
osamu at debian.org
Tue Mar 17 15:05:30 UTC 2015
Package: devscripts
Version: 2.15.1
Severity: normal
Tags: patch
When the debian/install file and similars have superflous empty lines at
the end of the file, they are all moved to the start of the list. It is
quite annoying.
Attached patch fix this issue.
I used iterator but if you prefere list may be used in place.
(I found this issue when debugging debmake template files.)
I applied this patch to the current unstable package and confirmed
working. I did not chose to put if in the original self.content line so
empty line with spaces also get removed.
This patch is against current unstable package. Though, it should be
simple to rebase this to VCS which applies the similar operations to other
files such as "links".
Regards,
Osamu
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wrap-and-sort.diff
Type: text/x-diff
Size: 540 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/devscripts-devel/attachments/20150318/bf823986/attachment.diff>
More information about the devscripts-devel
mailing list