Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 498c18f

Browse files
committed
Only use one initialization file for LaTeX2HTML; more recent versions only
use the last one specified on the command line instead of all of them. Smaller changes to reflect updated support.
1 parent 82c330e commit 498c18f

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

Doc/tools/mkhowto

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,6 @@ class Job:
330330
if not os.path.isdir(builddir):
331331
os.mkdir(builddir)
332332
args = [LATEX2HTML_BINARY,
333-
"-init_file", L2H_INIT_FILE,
334333
"-init_file", self.l2h_aux_init_file,
335334
"-dir", builddir,
336335
texfile
@@ -362,9 +361,13 @@ class Job:
362361

363362
def write_l2h_aux_init_file(self):
364363
fp = open(self.l2h_aux_init_file, "w")
365-
fp.write("# auxillary init file for latex2html\n"
364+
fp.write(open(L2H_INIT_FILE).read())
365+
fp.write("\n"
366+
"# auxillary init file for latex2html\n"
366367
"# generated by mkhowto\n"
368+
"push (@INC, '%s');\n"
367369
"$NO_AUTO_LINK = 1;\n"
370+
% os.path.dirname(L2H_INIT_FILE)
368371
)
369372
options = self.options
370373
l2hoption(fp, "ABOUT_FILE", options.about_file)
@@ -373,8 +376,6 @@ class Job:
373376
l2hoption(fp, "ADDRESS", options.address)
374377
l2hoption(fp, "MAX_LINK_DEPTH", options.max_link_depth)
375378
l2hoption(fp, "MAX_SPLIT_DEPTH", options.max_split_depth)
376-
# this line needed in case $IMAGE_TYPE changed
377-
fp.write("adjust_icon_information();\n")
378379
fp.write("1;\n")
379380
fp.close()
380381

0 commit comments

Comments
 (0)