From 2a1c8b761712b4ab5fad0b4fa762ffdab96fc0db Mon Sep 17 00:00:00 2001 From: mstsirkin Date: Thu, 26 Jun 2014 16:50:24 +0000 Subject: remove fixupdiff script remove fixupdiff.pl, it's unused now Signed-off-by: Michael S. Tsirkin git-svn-id: https://tools.oasis-open.org/version-control/svn/virtio@394 0c8fb4dd-22a2-4bb5-bc14-6c75a5f43652 --- fixupdiff.pl | 37 ------------------------------------- 1 file changed, 37 deletions(-) delete mode 100755 fixupdiff.pl (limited to 'fixupdiff.pl') diff --git a/fixupdiff.pl b/fixupdiff.pl deleted file mode 100755 index ce30692..0000000 --- a/fixupdiff.pl +++ /dev/null @@ -1,37 +0,0 @@ -#!/usr/bin/perl -pi - -# Too many \color directives (generated by DIFdel/addbegin/end) -# confuse xetex, producing errors: -# WARNING ** Color stack overflow. Just ignore. -# and resulting in corrupted color in output. -# As a work-around, detect cases where it's safe, and replace \color with -# \textcolor. -# 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}/; - -# external \color does not seem to apply to footnotes. -# detect and replace with \color within footnotes - -if (m/\\DIFaddbegin/) { - $diffadd=1; -} -if (m/\\DIFaddend/) { - $diffadd=0; -} -if (m/\\DIFdelbegin/) { - $diffdel=1; -} -if (m/\\DIFdelend/) { - $diffdel=0; -} - -if ($diffadd) { -s/(\\footnote\s*{)/$1\\DIFaddbegin{}/; -} - -if ($diffdel) { -s/(\\footnote\s*{)/$1\\DIFdelbegin{}/; -} -- cgit v1.2.3