Modernise
This commit is contained in:
parent
4c6441182b
commit
8faee98ec6
44 changed files with 214 additions and 201 deletions
|
|
@ -1549,7 +1549,7 @@ def latex2text(
|
|||
"in favor of the `pylatexenc.latex2text.LatexNodes2Text` class.",
|
||||
)
|
||||
|
||||
(nodelist, tpos, tlen) = latexwalker.get_latex_nodes(
|
||||
nodelist, tpos, tlen = latexwalker.get_latex_nodes(
|
||||
content, keep_inline_math=keep_inline_math, tolerant_parsing=tolerant_parsing
|
||||
)
|
||||
|
||||
|
|
|
|||
|
|
@ -289,7 +289,7 @@ def main(argv=None):
|
|||
latex, tolerant_parsing=args.tolerant_parsing, strict_braces=args.strict_braces
|
||||
)
|
||||
|
||||
(nodelist, pos, len_) = lw.get_latex_nodes()
|
||||
nodelist, pos, len_ = lw.get_latex_nodes()
|
||||
|
||||
ln2t = LatexNodes2Text(
|
||||
math_mode=args.math_mode,
|
||||
|
|
|
|||
|
|
@ -1774,7 +1774,7 @@ def make_accented_char(node, combining, l2tobj):
|
|||
|
||||
|
||||
for u in unicode_accents_list:
|
||||
(mname, mcombining) = u
|
||||
mname, mcombining = u
|
||||
_latex_specs_base["macros"].append(
|
||||
MacroTextSpec(
|
||||
mname, lambda x, l2tobj, c=mcombining: make_accented_char(x, c, l2tobj)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue