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

Skip to content

Commit cc7371c

Browse files
committed
Removed --l2h-config option; it introduced unnecessary complexity and
is not needed anywhere.
1 parent cd079c4 commit cc7371c

1 file changed

Lines changed: 1 addition & 10 deletions

File tree

Doc/tools/mkhowto

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ class Options:
9494
ALL_FORMATS = ("dvi", "html", "pdf", "ps", "text")
9595

9696
def __init__(self):
97-
self.config_files = []
9897
self.formats = []
9998

10099
def __getitem__(self, key):
@@ -107,7 +106,7 @@ class Options:
107106
def parse(self, args):
108107
opts, args = getopt.getopt(args, "Hi:a:s:lDkqr:",
109108
["all", "postscript", "help", "iconserver=",
110-
"address=", "a4", "l2h-config=", "letter",
109+
"address=", "a4", "letter",
111110
"link=", "split=", "logging", "debugging",
112111
"keep", "quiet", "runs=", "image-type=",
113112
"about=", "numeric"]
@@ -126,8 +125,6 @@ class Options:
126125
self.paper = "a4"
127126
elif opt == "--letter":
128127
self.paper = "letter"
129-
elif opt == "--l2h-config":
130-
self.config_files.append(arg)
131128
elif opt == "--link":
132129
self.max_link_depth = int(arg)
133130
elif opt in ("-s", "--split"):
@@ -370,12 +367,6 @@ class Job:
370367
"$NO_AUTO_LINK = 1;\n"
371368
)
372369
options = self.options
373-
for fn in options.config_files:
374-
fp.write(open(fn).read())
375-
fp.write("\n"
376-
"\n"
377-
'print "\nInitializing from file: %s\";\n\n'
378-
% string_to_perl(fn))
379370
l2hoption(fp, "ABOUT_FILE", options.about_file)
380371
l2hoption(fp, "ICONSERVER", options.icon_server)
381372
l2hoption(fp, "IMAGE_TYPE", options.image_type)

0 commit comments

Comments
 (0)