From 3cb9b5f79dd5842e86a9dedfb6be7a69f59df533 Mon Sep 17 00:00:00 2001 From: Tobias Wochinger Date: Fri, 10 Jul 2020 11:22:41 +0200 Subject: [PATCH] don't mix strip and slicing --- rasa/core/training/story_reader/markdown_story_reader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rasa/core/training/story_reader/markdown_story_reader.py b/rasa/core/training/story_reader/markdown_story_reader.py index 28df378df9a1..bc240a354a34 100644 --- a/rasa/core/training/story_reader/markdown_story_reader.py +++ b/rasa/core/training/story_reader/markdown_story_reader.py @@ -63,7 +63,7 @@ async def _process_lines(self, lines: List[Text]) -> List[StoryStep]: continue elif line.startswith(">>"): # reached a new rule block - rule_name = line[1:].strip("> ") + rule_name = line.lstrip(">> ") self._new_rule_part(rule_name, self.source_name) elif line.startswith("#"): # reached a new story block