From 26b4ae1ab39fa8a77bc544a4faf4a4233ce3422c Mon Sep 17 00:00:00 2001 From: Jan Sundermeyer Date: Fri, 20 Oct 2023 20:41:18 +0200 Subject: [PATCH] fix #3325 --- src/latexparser/latex2text.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/latexparser/latex2text.cpp b/src/latexparser/latex2text.cpp index c147872b8b..59f600287b 100644 --- a/src/latexparser/latex2text.cpp +++ b/src/latexparser/latex2text.cpp @@ -14,7 +14,9 @@ LineInfo::LineInfo(QDocumentLineHandle* line): line(line){ if(tk.type==Token::word && (tk.subtype==Token::none||tk.subtype==Token::text)) continue; if(tk.type==Token::punctuation && (tk.subtype==Token::none||tk.subtype==Token::text)) - continue; + continue; + if(tk.type==Token::number && (tk.subtype==Token::none||tk.subtype==Token::text)) + continue; // don't blank numbers, let LT see dates correctly if(tk.type==Token::symbol && (tk.subtype==Token::none||tk.subtype==Token::text)) continue; // don't blank symbol like '~' if(tk.type==Token::braces && tk.subtype==Token::text){