From 282282cc221d8b834c6cc87acf7f568cca5484db Mon Sep 17 00:00:00 2001 From: Takeshi KOMIYA Date: Sat, 22 Sep 2018 00:53:24 +0900 Subject: [PATCH] Fix #5454: latex: Index has disappeared from PDF for Japanese documents --- CHANGES | 1 + sphinx/texinputs/latexmkjarc | 8 +++----- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/CHANGES b/CHANGES index 2cd2b914c..87f3b519a 100644 --- a/CHANGES +++ b/CHANGES @@ -32,6 +32,7 @@ Bugs fixed * #5457: Fix TypeError in error message when override is prohibited * #5453: PDF builds of 'howto' documents have no page numbers * #5463: mathbase: math_role and MathDirective was disappeared in 1.8.0 +* #5454: latex: Index has disappeared from PDF for Japanese documents Testing -------- diff --git a/sphinx/texinputs/latexmkjarc b/sphinx/texinputs/latexmkjarc index 93c7fc78c..5b315d6c9 100644 --- a/sphinx/texinputs/latexmkjarc +++ b/sphinx/texinputs/latexmkjarc @@ -5,11 +5,9 @@ sub mendex { my ($source, $basename, $destination) = @_; my $dictfile = $basename . ".dic"; unlink($destination); - if (-f $dictfile) { - system("mendex", "-U", "-f", "-d", $dictfile, "-s", "python.ist", $source); - if ($? > 0) { - print("mendex exited with error code $? (ignored)\n"); - } + system("mendex", "-U", "-f", "-d", $dictfile, "-s", "python.ist", $source); + if ($? > 0) { + print("mendex exited with error code $? (ignored)\n"); } if (!-e $destination) { # create an empty .ind file if nothing