Skip to content

Commit

Permalink
remove spaces for checking empty grammar check
Browse files Browse the repository at this point in the history
  • Loading branch information
sunderme committed Dec 24, 2024
1 parent 49a7708 commit cbefe2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/grammarcheck.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ void GrammarCheck::check(const QString &language, LatexDocument *doc, const QLis
if (shuttingDown || inlines.isEmpty()) return;

// ignore requests which do not contain any text
if(std::all_of(inlines.begin(), inlines.end(), [](const LineInfo &li){return li.text.isEmpty();})){
if(std::all_of(inlines.begin(), inlines.end(), [](const LineInfo &li){return li.text.trimmed().isEmpty();})){
return;
}

Expand Down

0 comments on commit cbefe2d

Please sign in to comment.