txlyre před 1 týdnem
rodič
revize
e00987070b
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      markov.py

+ 1 - 1
markov.py

@@ -45,7 +45,7 @@ class Markov:
 
         text = orig_init_state if orig_init_state is not None else ""
         for word in words:
-            if word in "-–—" or not all(c in string.punctuation for c in word):
+            if word in "-–—" or not all(c in string.punctuation or c == "…" for c in word):
                 text += " "
 
             text += word