]> git.ipfire.org Git - thirdparty/libvirt.git/commit
bracket-spacing: Don't modify current line
authorMartin Kletzander <mkletzan@redhat.com>
Thu, 13 Nov 2014 14:04:52 +0000 (15:04 +0100)
committerMartin Kletzander <mkletzan@redhat.com>
Fri, 14 Nov 2014 16:13:36 +0000 (17:13 +0100)
commitd697de90c02b16a017666dbefcf46f4390601920
tree5fdebe488319819c0eea790da57eae1e42416ff8
parenta9d07d33a078c34020916f1f0c5dc8720310e595
bracket-spacing: Don't modify current line

In bracket-spacing.pl, the current $line is being modified in $data.
That, however, spoils that $data for another check.  Introduce new
$tmpdata variable that can be used for temporary modifications.  The
difference between $data and $line is that $data are as much cleaned as
possible from non-code blocks and these changes must be kept.

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
build-aux/bracket-spacing.pl