Skip to content

Commit

Permalink
don't mix strip and slicing
Browse files Browse the repository at this point in the history
  • Loading branch information
wochinge committed Jul 10, 2020
1 parent 5ad7aae commit 3cb9b5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rasa/core/training/story_reader/markdown_story_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3cb9b5f

Please sign in to comment.