mirror of
https://github.com/LCPQ/QUESTDB_website.git
synced 2024-11-04 05:03:53 +01:00
Try to fix a bug
This commit is contained in:
parent
720948ecab
commit
ba5ff99acd
@ -46,9 +46,13 @@ class newCommand(commandBase):
|
||||
fres=self.result
|
||||
else:
|
||||
resultstr=str(self.result)
|
||||
res=TexSoup(re.sub('\#([1-{}])'.format(self.argNum),lambda m: cmd.args[int(m.group(1))-1].value,resultstr))
|
||||
res=TexSoup(re.sub(f'\#([1-{self.argNum}])',lambda m: cmd.args[int(m.group(1))-1].value,resultstr))
|
||||
fres=TexSoup(res)
|
||||
tex.replace(cmd,fres)
|
||||
if str(tex)==str(cmd):
|
||||
tex.expr=fres.expr
|
||||
else:
|
||||
|
||||
|
||||
|
||||
def tryRun():
|
||||
cmds=list(tex.find_all(self.commandName))
|
||||
|
Loading…
Reference in New Issue
Block a user