From caaf1f08c8d3082405de562c1b07c1af40fa2330 Mon Sep 17 00:00:00 2001 From: mstsirkin Date: Tue, 16 Feb 2016 17:12:18 +0000 Subject: fixupdiff: actually apply the DIFadd/DIFdel hack looks like recent changes made it inactive: must change $line, not $_. Signed-off-by: Michael S. Tsirkin git-svn-id: https://tools.oasis-open.org/version-control/svn/virtio/branches/v1.0@562 0c8fb4dd-22a2-4bb5-bc14-6c75a5f43652 --- fixupdiff.pl | 4 ++-- 1 file 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\}/) { -- cgit v1.2.3