mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix #5454: latex: Index has disappeared from PDF for Japanese documents
This commit is contained in:
parent
49c231ee34
commit
282282cc22
1
CHANGES
1
CHANGES
@ -32,6 +32,7 @@ Bugs fixed
|
|||||||
* #5457: Fix TypeError in error message when override is prohibited
|
* #5457: Fix TypeError in error message when override is prohibited
|
||||||
* #5453: PDF builds of 'howto' documents have no page numbers
|
* #5453: PDF builds of 'howto' documents have no page numbers
|
||||||
* #5463: mathbase: math_role and MathDirective was disappeared in 1.8.0
|
* #5463: mathbase: math_role and MathDirective was disappeared in 1.8.0
|
||||||
|
* #5454: latex: Index has disappeared from PDF for Japanese documents
|
||||||
|
|
||||||
Testing
|
Testing
|
||||||
--------
|
--------
|
||||||
|
@ -5,12 +5,10 @@ sub mendex {
|
|||||||
my ($source, $basename, $destination) = @_;
|
my ($source, $basename, $destination) = @_;
|
||||||
my $dictfile = $basename . ".dic";
|
my $dictfile = $basename . ".dic";
|
||||||
unlink($destination);
|
unlink($destination);
|
||||||
if (-f $dictfile) {
|
|
||||||
system("mendex", "-U", "-f", "-d", $dictfile, "-s", "python.ist", $source);
|
system("mendex", "-U", "-f", "-d", $dictfile, "-s", "python.ist", $source);
|
||||||
if ($? > 0) {
|
if ($? > 0) {
|
||||||
print("mendex exited with error code $? (ignored)\n");
|
print("mendex exited with error code $? (ignored)\n");
|
||||||
}
|
}
|
||||||
}
|
|
||||||
if (!-e $destination) {
|
if (!-e $destination) {
|
||||||
# create an empty .ind file if nothing
|
# create an empty .ind file if nothing
|
||||||
open(FH, ">" . $destination);
|
open(FH, ">" . $destination);
|
||||||
|
Loading…
Reference in New Issue
Block a user