Small fixes.

This commit is contained in:
Adam Fourney 2025-03-28 15:07:19 -07:00
parent c3bc1d8154
commit 344f34c043
3 changed files with 4 additions and 5 deletions

View file

@ -38,6 +38,7 @@ all = [
"pandas",
"openpyxl",
"xlrd",
"lxml",
"pdfminer.six",
"olefile",
"pydub",

View file

@ -258,7 +258,7 @@ RAD = "\\sqrt[{deg}]{{{text}}}"
RAD_DEFAULT = "\\sqrt{{{text}}}"
ARR = "\\begin{{array}}{{c}}{text}\end{{array}}"
ARR = "\\begin{{array}}{{c}}{text}\\end{{array}}"
LIM_FUNC = {
"lim": "\\lim_{{{lim}}}",
@ -270,4 +270,4 @@ LIM_TO = ("\\rightarrow", "\\to")
LIM_UPP = "\\overset{{{lim}}}{{{text}}}"
M = "\\begin{{matrix}}{text}\end{{matrix}}"
M = "\\begin{{matrix}}{text}\\end{{matrix}}"

View file

@ -73,7 +73,6 @@ def get_val(key, default=None, store=CHR):
class Tag2Method(object):
def call_method(self, elm, stag=None):
getmethod = self.tag2meth.get
if stag is None:
@ -126,7 +125,6 @@ class Tag2Method(object):
class Pr(Tag2Method):
text = ""
__val_tags = ("chr", "pos", "begChr", "endChr", "type")
@ -341,7 +339,7 @@ class oMath2Latex(Tag2Method):
"""
rows = []
for stag, t, e in self.process_children_list(elm):
if stag is "mPr":
if stag == "mPr":
pass
elif stag == "mr":
rows.append(t)