Skip to content
Prev Previous commit
Next Next commit
Update source/NVDAObjects/IAccessible/ia2Web.py
Co-authored-by: Sean Budd <seanbudd123@gmail.com>
  • Loading branch information
RyanMcCleary and seanbudd authored May 4, 2026
commit 5cb3fcf8f0b2c369c3921efe99806ea51667f45e
6 changes: 2 additions & 4 deletions source/NVDAObjects/IAccessible/ia2Web.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,10 +341,8 @@ def _get_mathMl(self):

langAttr = f' xml:lang="{self.language}"' if self.language else ""
mathMl = f"<math{langAttr}>{mathAttr}</math>"
log.debug(
f"Got MathML from IA2 math attribute (length {len(mathMl)}): "
f"{mathMl[:100]!r}{'...' if len(mathMl) > 100 else ''}",
)
if log.isEnabledFor(log.DEBUG) and isMSAADebugLoggingEnabled():
log.debug(f"Got MathML from IA2 math attribute: {mathMl}")
return mathMl

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