Skip to content

Commit

Permalink
fixupdiff: actually apply the DIFadd/DIFdel hack
Browse files Browse the repository at this point in the history
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
  • Loading branch information
mstsirkin committed Feb 16, 2016
1 parent 6dc3e40 commit caaf1f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fixupdiff.pl
Expand Up @@ -26,8 +26,8 @@
# 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\}/) {
Expand Down

0 comments on commit caaf1f0

Please sign in to comment.