Skip to content
Prev Previous commit
Next Next commit
Added debug log
  • Loading branch information
RyanMcCleary committed May 4, 2026
commit 7c36c307f89c5ceff23f6e791c754be2529d0368
4 changes: 3 additions & 1 deletion source/NVDAObjects/IAccessible/ia2Web.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,9 @@ def _get_mathMl(self):
mathAttr = re.sub(r"<!--.*?-->", "", mathAttr, flags=re.DOTALL)

langAttr = f' xml:lang="{self.language}"' if self.language else ""
return f"<math{langAttr}>{mathAttr}</math>"
mathMl = f"<math{langAttr}>{mathAttr}</math>"
log.debug(f"Got MathML from IA2 math attribute: {mathMl!r}")
Comment thread
RyanMcCleary marked this conversation as resolved.
Outdated
return mathMl

from comtypes.gen.ISimpleDOM import ISimpleDOMNode # type: ignore[reportMissingImports]

Expand Down
Loading