mirror of
https://github.com/DS4SD/docling.git
synced 2025-07-29 21:44:32 +00:00
Add message
Signed-off-by: Rafael Teixeira de Lima <Rafael.td.lima@gmail.com>
This commit is contained in:
parent
4f284b3746
commit
a81faacfc9
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user