From 6fd7b39685d42560bcec0ceb00e91315f6b42562 Mon Sep 17 00:00:00 2001
From: Franck Dary <franck.dary@lis-lab.fr>
Date: Thu, 19 Mar 2020 17:37:24 +0100
Subject: [PATCH] Can now add space to words

---
 reading_machine/src/Action.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/reading_machine/src/Action.cpp b/reading_machine/src/Action.cpp
index 433adad..2d0aa64 100644
--- a/reading_machine/src/Action.cpp
+++ b/reading_machine/src/Action.cpp
@@ -386,7 +386,7 @@ Action Action::addCurCharToCurWord()
 
   auto appliable = [](const Config & config, const Action &)
   {
-    return config.hasCharacter(config.getCharacterIndex()) and !util::isSeparator(config.getLetter(config.getCharacterIndex()));
+    return config.hasCharacter(config.getCharacterIndex()) and !util::isIllegal(config.getLetter(config.getCharacterIndex()));
   };
 
   return {Type::Write, apply, undo, appliable}; 
-- 
GitLab