diff options
author | mstsirkin <mstsirkin@0c8fb4dd-22a2-4bb5-bc14-6c75a5f43652> | 2016-02-16 17:12:18 +0000 |
---|---|---|
committer | mstsirkin <mstsirkin@0c8fb4dd-22a2-4bb5-bc14-6c75a5f43652> | 2016-02-16 17:12:18 +0000 |
commit | caaf1f08c8d3082405de562c1b07c1af40fa2330 (patch) | |
tree | 6b992af3afa3f844410d65ab319c28f6a031831c | |
parent | 6dc3e400307a122155334dea0f61ace3af34135b (diff) |
fixupdiff: actually apply the DIFadd/DIFdel hack
looks like recent changes made it inactive: must
change $line, not $_.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
git-svn-id: https://tools.oasis-open.org/version-control/svn/virtio/branches/v1.0@562 0c8fb4dd-22a2-4bb5-bc14-6c75a5f43652
-rw-r--r-- | fixupdiff.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fixupdiff.pl b/fixupdiff.pl index e274d00..f66eaa3 100644 --- a/fixupdiff.pl +++ b/fixupdiff.pl @@ -26,8 +26,8 @@ while (<>) { # As a result, number of \color directives goes does sufficiently # enough to avoid the overflow error. - s/\\DIFdelbegin \\DIFdel\{([^}]*)\}\\DIFdelend/\\DIFdeltext{$1}/; - s/\\DIFaddbegin \\DIFadd\{([^}]*)\}\\DIFaddend/\\DIFaddtext{$1}/; + $line =~ s/\\DIFdelbegin \\DIFdel\{([^}]*)\}\\DIFdelend/\\DIFdeltext{$1}/; + $line =~ s/\\DIFaddbegin \\DIFadd\{([^}]*)\}\\DIFaddend/\\DIFaddtext{$1}/; print $line; if (m/%DIFDELCMD\s+<\s+\\end\{lstlisting\}/) { |