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

Skip to content

Commit 9eda3ae

Browse files
committed
Simplify a helper by returning fewer values.
1 parent cc91ac0 commit 9eda3ae

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

Doc/tools/sgmlconv/latex2esis.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -185,11 +185,10 @@ def subconvert(self, endchar=None, depth=0):
185185
if topentry.outputname:
186186
self.write(")%s\n-\\n\n" % topentry.outputname)
187187
#
188-
if entry.outputname:
189-
if entry.empty:
190-
self.write("e\n")
188+
if entry.outputname and entry.empty:
189+
self.write("e\n")
191190
#
192-
params, optional, empty, environ = self.start_macro(macroname)
191+
params, optional, empty = self.start_macro(macroname)
193192
# rip off the macroname
194193
if params:
195194
line = line[m.end(1):]
@@ -363,7 +362,7 @@ def start_macro(self, name):
363362
conversion = self.get_entry(name)
364363
parameters = conversion.parameters
365364
optional = parameters and parameters[0].optional
366-
return parameters, optional, conversion.empty, conversion.environment
365+
return parameters, optional, conversion.empty
367366

368367
def get_entry(self, name):
369368
entry = self.table.get(name)

0 commit comments

Comments
 (0)