Add message

Signed-off-by: Rafael Teixeira de Lima <Rafael.td.lima@gmail.com>
This commit is contained in:
Rafael Teixeira de Lima 2025-03-19 09:06:10 +01:00
parent 4f284b3746
commit a81faacfc9

View File

@ -276,7 +276,9 @@ class MsWordDocumentBackend(DeclarativeDocumentBackend):
texts_and_equations.append(latex_equation)
if "".join(only_texts).strip() != text.strip():
return text, only_equations
# If we are not able to reconstruct the initial raw text
# do not try to parse equations and return the original
return text, []
return "".join(texts_and_equations), only_equations