diff -r fe094d0687ad -r c27612f0eac0 src/parser.cpp
--- a/src/parser.cpp Wed Jun 22 23:51:06 2022 +0300
+++ b/src/parser.cpp Sun Jun 26 19:44:45 2022 +0300
@@ -16,6 +16,8 @@
* along with this program. If not, see .
*/
+#include
+#include
#include "model.h"
#include "parser.h"
#include "ldrawalgorithm.h"
@@ -201,7 +203,7 @@
line = line.trimmed();
try
{
- const QStringList tokens = line.split(QRegExp{R"(\s+)"});
+ const QStringList tokens = line.simplified().split(" ");
if (tokens.empty() or tokens == QStringList{{""}})
{
return Empty{};