From ebe75a3801a6054086659a17648e8e10dc7a0002 Mon Sep 17 00:00:00 2001 From: ohjian Date: Fri, 16 Jun 2023 15:15:23 +0200 Subject: [PATCH] =?UTF-8?q?=E2=80=9Eoutput=5Fmodule/whoosh.py=E2=80=9C=20?= =?UTF-8?q?=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- output_module/whoosh.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/output_module/whoosh.py b/output_module/whoosh.py index dd07529..2ee6767 100644 --- a/output_module/whoosh.py +++ b/output_module/whoosh.py @@ -27,7 +27,7 @@ def whoosh(previous_module, current_module, module): textContent = textFile.read() if textContent != "": #use content of text file to define text variable textIn = textContent - text = text.replace("\n", "") + textIn = textIn.replace("\n", "") else: #if text file is emptpy: randomly pick a default text (in case keyboard module is not used) defaultText = ["Modular Matter", "MODULAR MATTER", "Rewire your prints!", "REWIRE YOUR PRINTS!"] textIn = choice(defaultText)